summaryrefslogtreecommitdiff
path: root/hosts/vidhar/borg
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/vidhar/borg')
-rw-r--r--hosts/vidhar/borg/default.nix40
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