diff options
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 | ||