summaryrefslogtreecommitdiff
path: root/modules/git
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git')
-rw-r--r--modules/git/cgit.nix1
-rw-r--r--modules/git/cron.nix10
2 files changed, 11 insertions, 0 deletions
diff --git a/modules/git/cgit.nix b/modules/git/cgit.nix
index e5e2e6c..87e0dd1 100644
--- a/modules/git/cgit.nix
+++ b/modules/git/cgit.nix
@@ -22,6 +22,7 @@ in {
readme = ":README.md";
repository-sort = "age";
+ section-sort = "age";
enable-commit-graph = true;
enable-follow-links = true;
diff --git a/modules/git/cron.nix b/modules/git/cron.nix
new file mode 100644
index 0000000..9f0327d
--- /dev/null
+++ b/modules/git/cron.nix
@@ -0,0 +1,10 @@
+{ config, lib, pkgs, ... }:
+
+{
+ services.cron = {
+ enable = true;
+ systemCronJobs = [
+ "* * * * * git git-shell -c update-timestamps"
+ ];
+ };
+}