summaryrefslogtreecommitdiff
path: root/hosts/vidhar
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-05-16 00:05:34 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2022-05-16 00:05:34 +0200
commita029854b6f0fd913619c0d3b98897eca2bac8198 (patch)
tree9c1c4e4006b9ca6be7655a9a1cbe00bad168deab /hosts/vidhar
parent2c1768f8d11ec94d47eade5229b8a0a3b7433c91 (diff)
downloadnixos-a029854b6f0fd913619c0d3b98897eca2bac8198.tar
nixos-a029854b6f0fd913619c0d3b98897eca2bac8198.tar.gz
nixos-a029854b6f0fd913619c0d3b98897eca2bac8198.tar.bz2
nixos-a029854b6f0fd913619c0d3b98897eca2bac8198.tar.xz
nixos-a029854b6f0fd913619c0d3b98897eca2bac8198.zip
...
Diffstat (limited to 'hosts/vidhar')
-rw-r--r--hosts/vidhar/zfs.nix24
1 files changed, 0 insertions, 24 deletions
diff --git a/hosts/vidhar/zfs.nix b/hosts/vidhar/zfs.nix
index 8e1e4929..cfbd3d3a 100644
--- a/hosts/vidhar/zfs.nix
+++ b/hosts/vidhar/zfs.nix
@@ -138,27 +138,3 @@
138 }; 138 };
139 }; 139 };
140} 140}
141 };
142
143 users.users.gkleen.createHome = lib.mkForce false;
144 users.users.mherold.createHome = lib.mkForce false;
145
146 boot.postBootCommands = ''
147 echo "=== STARTING ZPOOL IMPORT ==="
148 ${pkgs.zfs}/bin/zpool import -a -N -d /dev
149 ${pkgs.zfs}/bin/zpool status
150 ${pkgs.zfs}/bin/zfs mount -a
151 echo "=== ZPOOL IMPORT COMPLETE ==="
152 '';
153
154 services.zfssnap.enable = true;
155 services.zfs.trim.enable = false;
156 services.zfs.autoScrub = {
157 enable = true;
158 interval = "Sun *-*-1..7 04:00:00";
159 };
160 services.zfs.zed.settings = {
161 ZED_SYSLOG_SUBCLASS_EXCLUDE = "history_event";
162 };
163 };
164}