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 }