Attempt to make ZFS work with custom installer image

This commit is contained in:
Vili Sinervä 2025-07-24 13:02:12 +03:00
parent ca8ced077f
commit 4159652de2
Signed by: Vili Sinervä
SSH key fingerprint: SHA256:FladqYjaE4scJY3Hi+gnShZ6ygnTJgixy0I6BAoHyos

View file

@ -33,12 +33,9 @@ in
"${nixpkgs-flake}/nixos/modules/installer/cd-dvd/installation-cd-graphical-combined.nix" "${nixpkgs-flake}/nixos/modules/installer/cd-dvd/installation-cd-graphical-combined.nix"
]; ];
# This block copied from https://github.com/nix-community/nixos-images # This block modified from https://github.com/nix-community/nixos-images
boot.zfs.package = pkgs.zfsUnstable; boot.zfs.package = zfs;
services.udev.packages = [ zfs ]; # to hook zvol naming, etc. environment.defaultPackages = lib.mkForce [ zfs ];
# unsure if need this, but in future udev rules could potentially point to systemd services.
systemd.packages = [ zfs ];
environment.defaultPackages = lib.mkForce [ zfs ]; # this merges with outer noninteractive module.
boot.kernelModules = [ "zfs" ]; boot.kernelModules = [ "zfs" ];
boot.extraModulePackages = [ config.boot.kernelPackages.zfs_unstable ]; boot.extraModulePackages = [ config.boot.kernelPackages.zfs_unstable ];
boot.kernelPackages = lib.mkForce latestKernelPackage; boot.kernelPackages = lib.mkForce latestKernelPackage;