From 9aa4f91d33fcbd07996020f5fbaa3646479f7ca3 Mon Sep 17 00:00:00 2001 From: coolneng Date: Fri, 18 Oct 2019 00:31:34 +0200 Subject: [PATCH] Scrub zpool monthly --- configuration.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/configuration.nix b/configuration.nix index b992747..a9634a5 100644 --- a/configuration.nix +++ b/configuration.nix @@ -22,10 +22,6 @@ git ]; - # Enable zfs support - networking.hostId = "bb26c304"; - boot.supportedFilesystems = [ "zfs" ]; - # File systems configuration for using the installer's partition layout fileSystems = { "/" = { @@ -63,10 +59,17 @@ time.timeZone = "Europe/Brussels"; services.timesyncd.enable = true; + # Enable zfs support + networking.hostId = "bb26c304"; + boot.supportedFilesystems = [ "zfs" ]; + + # Scrub zpool monthly + services.zfs.autoScrub.enable = true; + services.zfs.autoScrub.interval = "monthly"; + # Auto-upgrade the system and reboot if needed system.autoUpgrade.enable = true; system.autoUpgrade.allowReboot = true; - # Import other configuration modules }