diff options
Diffstat (limited to 'custom')
-rw-r--r-- | custom/borgbackup.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix index 77e7637a..ca7dd6af 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix | |||
@@ -77,6 +77,11 @@ in { | |||
77 | }; | 77 | }; |
78 | 78 | ||
79 | config = mkIf (any (t: t.paths != []) (attrValues cfg.targets)) { | 79 | config = mkIf (any (t: t.paths != []) (attrValues cfg.targets)) { |
80 | imports = [ | ||
81 | ./lvm-snapshots.nix | ||
82 | ./btrfs-snapshots.nix | ||
83 | ]; | ||
84 | |||
80 | services.btrfs-snapshots.enable = mkIf (cfg.snapshots == "btrfs") true; | 85 | services.btrfs-snapshots.enable = mkIf (cfg.snapshots == "btrfs") true; |
81 | 86 | ||
82 | services.lvm-snapshots = mkIf (cfg.snapshots == "lvm") (listToAttrs (map (path: nameValuePair (systemdPath path) { | 87 | services.lvm-snapshots = mkIf (cfg.snapshots == "lvm") (listToAttrs (map (path: nameValuePair (systemdPath path) { |