diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-11-08 08:59:28 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-11-08 08:59:28 +0100 |
commit | f91f9c763484a17a8222fd21e39ae48944c53ab7 (patch) | |
tree | 6b17997085389e3d9ff97620f92a1eccafb211e9 /hosts/vidhar | |
parent | ac65ace42a6391d04ffed747831aed6f855f8981 (diff) | |
download | nixos-f91f9c763484a17a8222fd21e39ae48944c53ab7.tar nixos-f91f9c763484a17a8222fd21e39ae48944c53ab7.tar.gz nixos-f91f9c763484a17a8222fd21e39ae48944c53ab7.tar.bz2 nixos-f91f9c763484a17a8222fd21e39ae48944c53ab7.tar.xz nixos-f91f9c763484a17a8222fd21e39ae48944c53ab7.zip |
...
Diffstat (limited to 'hosts/vidhar')
-rw-r--r-- | hosts/vidhar/borg/default.nix | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/hosts/vidhar/borg/default.nix b/hosts/vidhar/borg/default.nix index 5e983434..dfd4885e 100644 --- a/hosts/vidhar/borg/default.nix +++ b/hosts/vidhar/borg/default.nix | |||
@@ -71,26 +71,26 @@ in { | |||
71 | in filter (v: v != null) (mapAttrsToList toAuthKey (builtins.readDir dir)); | 71 | in filter (v: v != null) (mapAttrsToList toAuthKey (builtins.readDir dir)); |
72 | }; | 72 | }; |
73 | 73 | ||
74 | systemd.services."check-borg@${utils.escapeSystemdPath "/srv/backup/borg/jotnar"}" = checkBorgUnit; | 74 | # systemd.services."check-borg@${utils.escapeSystemdPath "/srv/backup/borg/jotnar"}" = checkBorgUnit; |
75 | systemd.services."check-borg@${utils.escapeSystemdPath "yggdrasil.borgbase:repo"}" = recursiveUpdate checkBorgUnit { | 75 | # systemd.services."check-borg@${utils.escapeSystemdPath "yggdrasil.borgbase:repo"}" = recursiveUpdate checkBorgUnit { |
76 | serviceConfig = { | 76 | # serviceConfig = { |
77 | Environment = checkBorgUnit.serviceConfig.Environment ++ [ | 77 | # Environment = checkBorgUnit.serviceConfig.Environment ++ [ |
78 | "BORG_KEY_FILE=${config.sops.secrets."yggdrasil.borgkey".path}" | 78 | # "BORG_KEY_FILE=${config.sops.secrets."yggdrasil.borgkey".path}" |
79 | ]; | 79 | # ]; |
80 | }; | 80 | # }; |
81 | }; | 81 | # }; |
82 | systemd.timers."check-borg@${utils.escapeSystemdPath "/srv/backup/borg/jotnar"}" = { | 82 | # systemd.timers."check-borg@${utils.escapeSystemdPath "/srv/backup/borg/jotnar"}" = { |
83 | wantedBy = [ "timers.target" ]; | 83 | # wantedBy = [ "timers.target" ]; |
84 | timerConfig = { | 84 | # timerConfig = { |
85 | OnCalendar = "*-*-* 00:30:00 UTC"; | 85 | # OnCalendar = "*-*-* 00:30:00 UTC"; |
86 | }; | 86 | # }; |
87 | }; | 87 | # }; |
88 | systemd.timers."check-borg@${utils.escapeSystemdPath "yggdrasil.borgbase:repo"}" = { | 88 | # systemd.timers."check-borg@${utils.escapeSystemdPath "yggdrasil.borgbase:repo"}" = { |
89 | wantedBy = [ "timers.target" ]; | 89 | # wantedBy = [ "timers.target" ]; |
90 | timerConfig = { | 90 | # timerConfig = { |
91 | OnCalendar = "*-*-* 00:30:00 UTC"; | 91 | # OnCalendar = "*-*-* 00:30:00 UTC"; |
92 | }; | 92 | # }; |
93 | }; | 93 | # }; |
94 | 94 | ||
95 | boot.postBootCommands = mkBefore '' | 95 | boot.postBootCommands = mkBefore '' |
96 | ${pkgs.findutils}/bin/find /srv/backup/borg -type d -empty -delete | 96 | ${pkgs.findutils}/bin/find /srv/backup/borg -type d -empty -delete |