diff options
Diffstat (limited to 'modules/git/cron.nix')
| -rw-r--r-- | modules/git/cron.nix | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/modules/git/cron.nix b/modules/git/cron.nix deleted file mode 100644 index acb27bd..0000000 --- a/modules/git/cron.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ config, lib, pkgs, ... }: - -{ - systemd.timers."update-timestamps" = { - wantedBy = [ "timers.target" ]; - timerConfig = { - OnBootSec = "10s"; - OnUnitActiveSec = "10s"; - Unit = "update-timestamps.service"; - }; - }; - - systemd.services."update-timestamps" = { - script = '' - REPOSITORIES=$(find /home/git/* -name '*.git' -type d) - - for repo in $REPOSITORIES; do - cd $repo - mkdir -p info/web - echo $(${pkgs.git}/bin/git log -1 --date=iso --format=%ci) > info/web/last-modified - done - ''; - serviceConfig = { - Type = "oneshot"; - User = "git"; - }; - }; -} |
