From 44b9b56204ad3c3703a86cb673ff849c50789e47 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Wed, 10 Apr 2024 18:16:51 +0200 Subject: [PATCH] autoscrub no zfs --- nixos/machines/chungus/hardware-configuration/default.nix | 5 ++++- .../machines/chungus/hardware-configuration/disko-config.nix | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/nixos/machines/chungus/hardware-configuration/default.nix b/nixos/machines/chungus/hardware-configuration/default.nix index 506b031..d9a4183 100644 --- a/nixos/machines/chungus/hardware-configuration/default.nix +++ b/nixos/machines/chungus/hardware-configuration/default.nix @@ -19,6 +19,9 @@ boot.supportedFilesystems = [ "zfs" ]; # head -c4 /dev/urandom | od -A none -t x4 networking.hostId = "e439b116"; - services.zfs.autoSnapshot.enable = true; + services.zfs = { + autoSnapshot.enable = true; + autoScrub.enable = true; + }; } diff --git a/nixos/machines/chungus/hardware-configuration/disko-config.nix b/nixos/machines/chungus/hardware-configuration/disko-config.nix index 423f25d..e087c21 100644 --- a/nixos/machines/chungus/hardware-configuration/disko-config.nix +++ b/nixos/machines/chungus/hardware-configuration/disko-config.nix @@ -127,6 +127,7 @@ in }; # `zpool import -f zraid` once on the first boot and reboot + # todo: rename to tank next time (this is the standard) zraid = { type = "zpool"; mode = "raidz2";