summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--custom/borgbackup.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix
index 17609098..781f094a 100644
--- a/custom/borgbackup.nix
+++ b/custom/borgbackup.nix
@@ -66,6 +66,7 @@ in {
66 Persistent = false; 66 Persistent = false;
67 OnBootSec = tCfg.interval; 67 OnBootSec = tCfg.interval;
68 OnUnitInactiveSec = tCfg.interval; 68 OnUnitInactiveSec = tCfg.interval;
69 Unit = "borgbackup-${target}@${path}.service";
69 }; 70 };
70 }) (flatten (mapAttrsToList (target: tCfg: map (path: { inherit target path tCfg; }) tCfg.paths) cfg.targets)))) // (mapAttrs' (target: tCfg: nameValuePair "borgbackup-prune-${target}" { 71 }) (flatten (mapAttrsToList (target: tCfg: map (path: { inherit target path tCfg; }) tCfg.paths) cfg.targets)))) // (mapAttrs' (target: tCfg: nameValuePair "borgbackup-prune-${target}" {
71 wantedBy = [ "timers.target" ]; 72 wantedBy = [ "timers.target" ];
@@ -74,7 +75,6 @@ in {
74 Persistent = false; 75 Persistent = false;
75 OnBootSec = tCfg.interval; 76 OnBootSec = tCfg.interval;
76 OnUnitInactiveSec = tCfg.interval; 77 OnUnitInactiveSec = tCfg.interval;
77 Unit = "borgbackup-${target}@${path}.service";
78 }; 78 };
79 }) cfg.targets); 79 }) cfg.targets);
80 80