diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-09 13:36:57 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-09 13:36:57 +0200 |
commit | 79b160dc8266bf603ca4cf9fd06ab15500c64887 (patch) | |
tree | 89d1f17179ddde2cbe51ad2244d208e03b97b2cc | |
parent | 8a1145134f144d1ef273e4254662d56396834484 (diff) | |
download | nixos-79b160dc8266bf603ca4cf9fd06ab15500c64887.tar nixos-79b160dc8266bf603ca4cf9fd06ab15500c64887.tar.gz nixos-79b160dc8266bf603ca4cf9fd06ab15500c64887.tar.bz2 nixos-79b160dc8266bf603ca4cf9fd06ab15500c64887.tar.xz nixos-79b160dc8266bf603ca4cf9fd06ab15500c64887.zip |
…
-rw-r--r-- | custom/borgbackup.nix | 5 | ||||
-rw-r--r-- | hel.nix | 1 | ||||
-rw-r--r-- | odin.nix | 1 |
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) { |
@@ -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 | ||
@@ -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 | ||