diff options
-rw-r--r-- | custom/borgbackup.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix index 73023999..fbe5bb4e 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix | |||
@@ -87,8 +87,9 @@ in { | |||
87 | }; | 87 | }; |
88 | 88 | ||
89 | imports = | 89 | imports = |
90 | optional (cfg.snapshots == "lvm") ./lvm-snapshots.nix | 90 | [ ./lvm-snapshots.nix |
91 | ++ optional (cfg.snapshats == "btrfs") ./btrfs-snapshots.nix; | 91 | ./btrfs-snapshots.nix |
92 | ]; | ||
92 | 93 | ||
93 | config = mkIf (any (t: t.paths != []) (attrValues cfg.targets)) { | 94 | config = mkIf (any (t: t.paths != []) (attrValues cfg.targets)) { |
94 | services.btrfs-snapshots.enable = mkIf (cfg.snapshots == "btrfs") true; | 95 | services.btrfs-snapshots.enable = mkIf (cfg.snapshots == "btrfs") true; |