diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-12-17 04:18:55 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-12-17 04:18:55 +0100 |
commit | 9f490eedc8337ee3449bf92440111ffdc3d9306c (patch) | |
tree | e072fb72f5ed6fdb47e9fa763de89c76eb883084 | |
parent | bb834350e2730885cb0ccf726c5bc0417bbd71ae (diff) | |
download | nixos-9f490eedc8337ee3449bf92440111ffdc3d9306c.tar nixos-9f490eedc8337ee3449bf92440111ffdc3d9306c.tar.gz nixos-9f490eedc8337ee3449bf92440111ffdc3d9306c.tar.bz2 nixos-9f490eedc8337ee3449bf92440111ffdc3d9306c.tar.xz nixos-9f490eedc8337ee3449bf92440111ffdc3d9306c.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 6caf799e..6b0d97dc 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix | |||
@@ -54,7 +54,7 @@ in { | |||
54 | config = mkIf (any (t: t.paths != []) (attrValues cfg.targets)) { | 54 | config = mkIf (any (t: t.paths != []) (attrValues cfg.targets)) { |
55 | services.btrfs-snapshots.enable = mkIf (cfg.snapshots == "btrfs") true; | 55 | services.btrfs-snapshots.enable = mkIf (cfg.snapshots == "btrfs") true; |
56 | 56 | ||
57 | systemd.timers = listToAttrs (map (target: path: nameValuePair "borgbackup-${target}@${path}" { | 57 | systemd.timers = listToAttrs (map ({ target, path }: nameValuePair "borgbackup-${target}@${path}" { |
58 | wantedBy = [ "timers.target" ]; | 58 | wantedBy = [ "timers.target" ]; |
59 | 59 | ||
60 | timerConfig = { | 60 | timerConfig = { |