summaryrefslogtreecommitdiff
path: root/hosts/surtr/zfs.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2024-08-08 14:36:50 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2024-08-08 14:36:50 +0200
commitbe06f04babc12fb60366c24a22561c1d46895c80 (patch)
tree8df057a3605a7272cb048043be7593b5c944a67c /hosts/surtr/zfs.nix
parenta6754d729f2d16cfdcb3570891c038a14718de1f (diff)
parentbc90ef66903e78713db1fd3a700785572b794cde (diff)
downloadnixos-be06f04babc12fb60366c24a22561c1d46895c80.tar
nixos-be06f04babc12fb60366c24a22561c1d46895c80.tar.gz
nixos-be06f04babc12fb60366c24a22561c1d46895c80.tar.bz2
nixos-be06f04babc12fb60366c24a22561c1d46895c80.tar.xz
nixos-be06f04babc12fb60366c24a22561c1d46895c80.zip
Merge commit 'bc90ef66' into flakes
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";