diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-14 16:30:51 -0400 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-14 16:30:51 -0400 |
commit | 8daff4aabb08b02205a035878fe484d08867f376 (patch) | |
tree | 3c002dfb134caf7b5f2a7a4ec58f992c901210d0 | |
parent | 4bf2677aaf40f9d937061a2851b2999fa6bb4ec5 (diff) |
add crontab
-rw-r--r-- | machines/oxo/configuration.nix | 1 | ||||
-rw-r--r-- | modules/git/cgit.nix | 1 | ||||
-rw-r--r-- | modules/git/cron.nix | 10 |
3 files changed, 12 insertions, 0 deletions
diff --git a/machines/oxo/configuration.nix b/machines/oxo/configuration.nix index 4bf16df..ddc5429 100644 --- a/machines/oxo/configuration.nix +++ b/machines/oxo/configuration.nix @@ -10,6 +10,7 @@ "compromyse.nix" "git/user.nix" "git/cgit.nix" + "git/cron.nix" ]); networking.hostName = "oxo"; 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" + ]; + }; +} |