My Nix Configuration
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

[marvin] use sanoid instead of z-a-s

dish 3d77a4d1 443e38eb

+40 -5
+40 -5
hosts/marvin/services/zfs.nix
··· 1 1 { 2 - services.zfs = { 3 - trim.enable = true; 4 - autoScrub.enable = true; 5 - autoScrub.pools = [ "tank" ]; 6 - autoSnapshot.enable = true; 2 + services = { 3 + zfs = { 4 + trim.enable = true; 5 + autoScrub.enable = true; 6 + autoScrub.pools = [ "tank" ]; 7 + }; 8 + sanoid = { 9 + enable = true; 10 + templates = { 11 + default = { 12 + yearly = 1; 13 + monthly = 12; 14 + daily = 7; 15 + hourly = 24; 16 + frequently = 15; 17 + autosnap = true; 18 + autoprune = true; 19 + }; 20 + none = { 21 + yearly = 0; 22 + monthly = 0; 23 + daily = 0; 24 + hourly = 0; 25 + frequently = 0; 26 + autosnap = false; 27 + autoprune = true; 28 + monitor = false; 29 + }; 30 + }; 31 + datasets = { 32 + "tank" = { 33 + use_template = [ "default" ]; 34 + recursive = true; 35 + }; 36 + "tank/var/lib/docker" = { 37 + use_template = [ "none" ]; 38 + recursive = true; 39 + }; 40 + }; 41 + }; 7 42 }; 8 43 }