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 /custom | |
parent | 8a1145134f144d1ef273e4254662d56396834484 (diff) | |
download | nixos-79b160dc8266bf603ca4cf9fd06ab15500c64887.tar nixos-79b160dc8266bf603ca4cf9fd06ab15500c64887.tar.gz nixos-79b160dc8266bf603ca4cf9fd06ab15500c64887.tar.bz2 nixos-79b160dc8266bf603ca4cf9fd06ab15500c64887.tar.xz nixos-79b160dc8266bf603ca4cf9fd06ab15500c64887.zip |
…
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) { |