about summary refs log tree commit diff
path: root/modules/server/git/nixpkgs/default.nix
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-04-14 23:05:17 +0000
committerAlyssa Ross <hi@alyssa.is>2021-04-14 23:05:17 +0000
commitd401fca7d8337fa34b7e00ea8db4904fe967c6fa (patch)
treec7292f335f27b02065665f5cc840f592d2930af4 /modules/server/git/nixpkgs/default.nix
parent00773641067347a338c63fda829b98ce946896f6 (diff)
downloadnixlib-d401fca7d8337fa34b7e00ea8db4904fe967c6fa.tar
nixlib-d401fca7d8337fa34b7e00ea8db4904fe967c6fa.tar.gz
nixlib-d401fca7d8337fa34b7e00ea8db4904fe967c6fa.tar.bz2
nixlib-d401fca7d8337fa34b7e00ea8db4904fe967c6fa.tar.lz
nixlib-d401fca7d8337fa34b7e00ea8db4904fe967c6fa.tar.xz
nixlib-d401fca7d8337fa34b7e00ea8db4904fe967c6fa.tar.zst
nixlib-d401fca7d8337fa34b7e00ea8db4904fe967c6fa.zip
modules/server/git/nixpkgs: run on a timer
Without this, it's not very useful.  Oops.
Diffstat (limited to 'modules/server/git/nixpkgs/default.nix')
-rw-r--r--modules/server/git/nixpkgs/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/server/git/nixpkgs/default.nix b/modules/server/git/nixpkgs/default.nix
index fd711936e616..13e1eb34138b 100644
--- a/modules/server/git/nixpkgs/default.nix
+++ b/modules/server/git/nixpkgs/default.nix
@@ -42,4 +42,10 @@ in
     serviceConfig.ExecStart = "${pkgs.gitMinimal}/bin/git --git-dir /var/lib/git/nixpkgs.git fetch";
     serviceConfig.Type = "oneshot";
   };
+
+  systemd.timers.git-fetch-qaul = {
+    wantedBy = [ "timers.target" ];
+    timerConfig.OnActiveSec = 0;
+    timerConfig.OnUnitActiveSec = 300;
+  };
 }