summaryrefslogtreecommitdiff
path: root/hosts/sif/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/sif/default.nix')
-rw-r--r--hosts/sif/default.nix24
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" ];