Personal-use NixOS configuration
at main 43 lines 721 B view raw
1{ 2 boot.supportedFilesystems = [ "zfs" ]; 3 boot.zfs.forceImportRoot = false; 4 5 boot.zfs.devNodes = "/dev/disk/by-partuuid"; 6 7 services.zfs.autoScrub.enable = true; 8 9 services.sanoid = { 10 enable = true; 11 12 templates = { 13 vital = { 14 autosnap = true; 15 autoprune = true; 16 17 yearly = 3; 18 monthly = 12; 19 daily = 62; 20 hourly = 120; 21 }; 22 23 hourly = { 24 autosnap = true; 25 autoprune = true; 26 27 monthly = 3; 28 daily = 7; 29 hourly = 24; 30 }; 31 32 daily = { 33 autosnap = true; 34 autoprune = true; 35 36 monthly = 6; 37 daily = 31; 38 }; 39 }; 40 }; 41 42 services.netdata.config.plugins = { "go.d" = "yes"; }; 43}