diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-09 13:37:21 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-09 13:37:21 +0200 |
commit | 93447a0f164c4fe577ae1ea4635d7dbf12a6dd22 (patch) | |
tree | 98c416e2b1248eaf15cff1448b661dc59ba6eada /custom | |
parent | 79b160dc8266bf603ca4cf9fd06ab15500c64887 (diff) | |
download | nixos-93447a0f164c4fe577ae1ea4635d7dbf12a6dd22.tar nixos-93447a0f164c4fe577ae1ea4635d7dbf12a6dd22.tar.gz nixos-93447a0f164c4fe577ae1ea4635d7dbf12a6dd22.tar.bz2 nixos-93447a0f164c4fe577ae1ea4635d7dbf12a6dd22.tar.xz nixos-93447a0f164c4fe577ae1ea4635d7dbf12a6dd22.zip |
…
Diffstat (limited to 'custom')
-rw-r--r-- | custom/borgbackup.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix index ca7dd6af..e00a9d74 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix | |||
@@ -76,11 +76,12 @@ in { | |||
76 | }; | 76 | }; |
77 | }; | 77 | }; |
78 | 78 | ||
79 | imports = [ | ||
80 | ./lvm-snapshots.nix | ||
81 | ./btrfs-snapshots.nix | ||
82 | ]; | ||
83 | |||
79 | config = mkIf (any (t: t.paths != []) (attrValues cfg.targets)) { | 84 | config = mkIf (any (t: t.paths != []) (attrValues cfg.targets)) { |
80 | imports = [ | ||
81 | ./lvm-snapshots.nix | ||
82 | ./btrfs-snapshots.nix | ||
83 | ]; | ||
84 | 85 | ||
85 | services.btrfs-snapshots.enable = mkIf (cfg.snapshots == "btrfs") true; | 86 | services.btrfs-snapshots.enable = mkIf (cfg.snapshots == "btrfs") true; |
86 | 87 | ||