From 4159652de2c3bcf647b6e480f187eac133a3058f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vili=20Sinerv=C3=A4?= Date: Thu, 24 Jul 2025 13:02:12 +0300 Subject: [PATCH] Attempt to make ZFS work with custom installer image --- hosts/x86_64-linux/installer.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/hosts/x86_64-linux/installer.nix b/hosts/x86_64-linux/installer.nix index 6c8ffaf..9cb351d 100644 --- a/hosts/x86_64-linux/installer.nix +++ b/hosts/x86_64-linux/installer.nix @@ -33,12 +33,9 @@ in "${nixpkgs-flake}/nixos/modules/installer/cd-dvd/installation-cd-graphical-combined.nix" ]; - # This block copied from https://github.com/nix-community/nixos-images - boot.zfs.package = pkgs.zfsUnstable; - services.udev.packages = [ zfs ]; # to hook zvol naming, etc. - # 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. + # This block modified from https://github.com/nix-community/nixos-images + boot.zfs.package = zfs; + environment.defaultPackages = lib.mkForce [ zfs ]; boot.kernelModules = [ "zfs" ]; boot.extraModulePackages = [ config.boot.kernelPackages.zfs_unstable ]; boot.kernelPackages = lib.mkForce latestKernelPackage;