summaryrefslogtreecommitdiff
path: root/hosts/surtr/zfs.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2024-06-11 11:37:04 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2024-06-11 11:37:04 +0200
commit7850385f9b285d31d79d26d82ab8a858839d29ea (patch)
treed0465c7e9fb5e70e322fa4bd90e482802ae5a0ea /hosts/surtr/zfs.nix
parentabd52b6aa1664d8af1aaa22b540ae3c63e491125 (diff)
downloadnixos-7850385f9b285d31d79d26d82ab8a858839d29ea.tar
nixos-7850385f9b285d31d79d26d82ab8a858839d29ea.tar.gz
nixos-7850385f9b285d31d79d26d82ab8a858839d29ea.tar.bz2
nixos-7850385f9b285d31d79d26d82ab8a858839d29ea.tar.xz
nixos-7850385f9b285d31d79d26d82ab8a858839d29ea.zip
...
Diffstat (limited to 'hosts/surtr/zfs.nix')
-rw-r--r--hosts/surtr/zfs.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/hosts/surtr/zfs.nix b/hosts/surtr/zfs.nix
index 583ab8e1..17c5cd32 100644
--- a/hosts/surtr/zfs.nix
+++ b/hosts/surtr/zfs.nix
@@ -17,7 +17,7 @@
17 fsType = "zfs"; 17 fsType = "zfs";
18 neededForBoot = true; 18 neededForBoot = true;
19 }; 19 };
20 20
21 "/var/lib/nixos" = 21 "/var/lib/nixos" =
22 { device = "surtr/local/var-lib-nixos"; 22 { device = "surtr/local/var-lib-nixos";
23 fsType = "zfs"; 23 fsType = "zfs";
@@ -62,10 +62,13 @@
62 }; 62 };
63 63
64 services.zfssnap.enable = true; 64 services.zfssnap.enable = true;
65 services.zfs.trim.enable = false; 65 services.zfs.trim = {
66 enable = true;
67 interval = "Sun 16:00:00 Europe/Berlin";
68 };
66 services.zfs.autoScrub = { 69 services.zfs.autoScrub = {
67 enable = true; 70 enable = true;
68 interval = "Sun *-*-1..7 04:00:00"; 71 interval = "Sun *-*-1..7 04:00:00 Europe/Berlin";
69 }; 72 };
70 services.zfs.zed.settings = { 73 services.zfs.zed.settings = {
71 ZED_SYSLOG_SUBCLASS_EXCLUDE = "history_event"; 74 ZED_SYSLOG_SUBCLASS_EXCLUDE = "history_event";