diff --git a/hosts/sobotka/default.nix b/hosts/sobotka/default.nix index cea194c4..ac9e2154 100644 --- a/hosts/sobotka/default.nix +++ b/hosts/sobotka/default.nix @@ -68,6 +68,16 @@ in } ]; + boot = { + supportedFilesystems = [ "zfs" ]; + zfs.extraPools = [ "data" ]; + }; + + services.zfs = { + autoSnapshot.enable = true; + autoScrub.enable = true; + }; + environment.variables.NH_FLAKE = "/home/cnst/.nix-config"; # # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion diff --git a/hosts/sobotka/hardware-configuration.nix b/hosts/sobotka/hardware-configuration.nix index 636ec27d..5febf188 100644 --- a/hosts/sobotka/hardware-configuration.nix +++ b/hosts/sobotka/hardware-configuration.nix @@ -22,7 +22,6 @@ "sd_mod" ]; boot.initrd.kernelModules = [ "amdgpu" ]; - boot.supportedFilesystems = [ "zfs" ]; boot.kernelModules = [ ]; boot.extraModulePackages = [ ];