diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-12-17 04:11:15 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-12-17 04:11:15 +0100 |
commit | f84447c7705c41d738490c058d38ae7eae424440 (patch) | |
tree | 7cdcd42759cec7c11bf82e63e068c028c855f8e2 | |
parent | ed582aba55f3ef62c9cc90ee848cfcb341608b31 (diff) | |
download | nixos-f84447c7705c41d738490c058d38ae7eae424440.tar nixos-f84447c7705c41d738490c058d38ae7eae424440.tar.gz nixos-f84447c7705c41d738490c058d38ae7eae424440.tar.bz2 nixos-f84447c7705c41d738490c058d38ae7eae424440.tar.xz nixos-f84447c7705c41d738490c058d38ae7eae424440.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 ad351a20..200194a2 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix | |||
@@ -51,7 +51,7 @@ in { | |||
51 | }; | 51 | }; |
52 | }; | 52 | }; |
53 | 53 | ||
54 | config = mkIf (any (t: t.paths != []) 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}" { |