diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-12-17 14:38:37 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-12-17 14:38:37 +0100 |
commit | 55124b11e02da39ba71d97c8c6d3c0e27d595864 (patch) | |
tree | 4d05bdd7c57101e50cf46e9d19911bc09740961a | |
parent | df695473cec3c3bb9464206f3a9c9e1c4c555f84 (diff) | |
download | nixos-55124b11e02da39ba71d97c8c6d3c0e27d595864.tar nixos-55124b11e02da39ba71d97c8c6d3c0e27d595864.tar.gz nixos-55124b11e02da39ba71d97c8c6d3c0e27d595864.tar.bz2 nixos-55124b11e02da39ba71d97c8c6d3c0e27d595864.tar.xz nixos-55124b11e02da39ba71d97c8c6d3c0e27d595864.zip |
…
-rw-r--r-- | custom/borgbackup.nix | 2 |
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 | ||