diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-06 21:20:24 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-06 21:20:24 +0100 |
commit | 32282ae39d352428988891207fb4f276a311846a (patch) | |
tree | 03b3e562996b5c47b29fbc43beae72801fc66844 /hosts/sif/default.nix | |
parent | ab822140ffb2980ced0026bbd6e4f417b53451b0 (diff) | |
download | nixos-32282ae39d352428988891207fb4f276a311846a.tar nixos-32282ae39d352428988891207fb4f276a311846a.tar.gz nixos-32282ae39d352428988891207fb4f276a311846a.tar.bz2 nixos-32282ae39d352428988891207fb4f276a311846a.tar.xz nixos-32282ae39d352428988891207fb4f276a311846a.zip |
vidhar: borg
Diffstat (limited to 'hosts/sif/default.nix')
-rw-r--r-- | hosts/sif/default.nix | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/hosts/sif/default.nix b/hosts/sif/default.nix index 07ba564d..9516ceba 100644 --- a/hosts/sif/default.nix +++ b/hosts/sif/default.nix | |||
@@ -405,30 +405,6 @@ in { | |||
405 | ACTION=="add", SUBSYSTEM=="net", KERNEL=="virbr0", ENV{NM_UNMANAGED}="1" | 405 | ACTION=="add", SUBSYSTEM=="net", KERNEL=="virbr0", ENV{NM_UNMANAGED}="1" |
406 | ''; | 406 | ''; |
407 | 407 | ||
408 | services.borgbackup = { | ||
409 | snapshots = "btrfs"; | ||
410 | prefix = "yggdrasil.midgard.sif."; | ||
411 | targets = { | ||
412 | "munin" = { | ||
413 | repo = "borg.munin:borg"; | ||
414 | paths = [ "/home/gkleen" ]; | ||
415 | prune = { | ||
416 | "home" = | ||
417 | [ "--keep-within" "24H" | ||
418 | "--keep-daily" "31" | ||
419 | "--keep-monthly" "12" | ||
420 | "--keep-yearly" "-1" | ||
421 | ]; | ||
422 | }; | ||
423 | keyFile = "/run/secrets/borg-repokey--borg_munin__borg"; | ||
424 | }; | ||
425 | }; | ||
426 | }; | ||
427 | sops.secrets.borg-repokey--borg_munin__borg = { | ||
428 | sopsFile = /. + path + "/modules/borgbackup/repokeys/borg_munin__borg.yaml"; | ||
429 | key = "key"; | ||
430 | }; | ||
431 | |||
432 | services.btrfs.autoScrub = { | 408 | services.btrfs.autoScrub = { |
433 | enable = true; | 409 | enable = true; |
434 | fileSystems = [ "/" "/home" ]; | 410 | fileSystems = [ "/" "/home" ]; |