diff options
-rw-r--r-- | odin.nix | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -2,7 +2,7 @@ | |||
2 | # your system. Help is available in the configuration.nix(5) man page | 2 | # your system. Help is available in the configuration.nix(5) man page |
3 | # and in the NixOS manual (accessible by running ‘nixos-help’). | 3 | # and in the NixOS manual (accessible by running ‘nixos-help’). |
4 | 4 | ||
5 | { config, pkgs, ... }: | 5 | { config, pkgs, lib, ... }: |
6 | 6 | ||
7 | { | 7 | { |
8 | imports = | 8 | imports = |
@@ -156,7 +156,18 @@ | |||
156 | repo = "borg.munin:borg"; | 156 | repo = "borg.munin:borg"; |
157 | paths = [ | 157 | paths = [ |
158 | { VG = "raid6"; LV = "mail"; } | 158 | { VG = "raid6"; LV = "mail"; } |
159 | { VG = "raid6"; LV = "home"; } | ||
160 | { VG = "raid6"; LV = "media"; } | ||
161 | { VG = "raid6"; LV = "root"; } | ||
162 | { VG = "ssd-raid1"; LV = "root"; } | ||
159 | ]; | 163 | ]; |
164 | |||
165 | prune = lib.genAttrs (name: [ | ||
166 | "--keep-within 24H" | ||
167 | "--keep-daily 31" | ||
168 | "--keep-monthly 12" | ||
169 | "--keep-yearly -1" | ||
170 | ]) ["raid6/mail" "raid6/home" "raid6/media" "raid6/root" "ssd-raid1/root"]; | ||
160 | }; | 171 | }; |
161 | }; | 172 | }; |
162 | }; | 173 | }; |