{ config, lib, pkgs, ... }: { options = { modules.homelab.zfs.enable = lib.mkEnableOption "enables zfs"; }; config = lib.mkIf config.modules.homelab.zfs.enable { # set network host id networking.hostId = "3e6e7055"; # enable zfs support boot.kernelModules = [ "zfs" ]; boot.supportedFilesystems = [ "zfs" ]; # enable smart monitoring services.smartd.enable = true; # enable zfs services.zfs = { autoScrub.enable = true; autoScrub.interval = "weekly"; }; }; }