diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2019-11-24 18:52:00 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2019-11-24 18:52:00 +0100 |
commit | 16907736b58f1edf298635b529588fbbcb974b04 (patch) | |
tree | 8672bf353e642c311eca2a21d61d7f47fddd3a08 /custom | |
parent | 2d915b4b8d74664645d1bb063100390938111b09 (diff) | |
download | nixos-16907736b58f1edf298635b529588fbbcb974b04.tar nixos-16907736b58f1edf298635b529588fbbcb974b04.tar.gz nixos-16907736b58f1edf298635b529588fbbcb974b04.tar.bz2 nixos-16907736b58f1edf298635b529588fbbcb974b04.tar.xz nixos-16907736b58f1edf298635b529588fbbcb974b04.zip |
...
Diffstat (limited to 'custom')
-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; |