summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--custom/borgbackup.nix5
-rw-r--r--hel.nix1
-rw-r--r--odin.nix1
3 files changed, 5 insertions, 2 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) {
diff --git a/hel.nix b/hel.nix
index a8a3db89..b38c4814 100644
--- a/hel.nix
+++ b/hel.nix
@@ -14,7 +14,6 @@
14 ./custom/tinc/def.nix 14 ./custom/tinc/def.nix
15 ./custom/tinc/yggdrasil.nix 15 ./custom/tinc/yggdrasil.nix
16 ./custom/uucp.nix 16 ./custom/uucp.nix
17 ./custom/btrfs-snapshots.nix
18 ./custom/borgbackup.nix 17 ./custom/borgbackup.nix
19 ]; 18 ];
20 19
diff --git a/odin.nix b/odin.nix
index 0fdcad2e..98287d54 100644
--- a/odin.nix
+++ b/odin.nix
@@ -11,7 +11,6 @@
11 ./users.nix 11 ./users.nix
12 ./custom/uucp.nix 12 ./custom/uucp.nix
13 ./custom/uucp-mediaserver.nix 13 ./custom/uucp-mediaserver.nix
14 ./custom/lvm-snapshots.nix
15 ./custom/borgbackup.nix 14 ./custom/borgbackup.nix
16 ]; 15 ];
17 16