diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-04-14 23:05:17 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-04-14 23:05:17 +0000 |
commit | d401fca7d8337fa34b7e00ea8db4904fe967c6fa (patch) | |
tree | c7292f335f27b02065665f5cc840f592d2930af4 /modules/server/git/nixpkgs/default.nix | |
parent | 00773641067347a338c63fda829b98ce946896f6 (diff) | |
download | nixlib-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.nix | 6 |
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; + }; } |