Root zfs, kernel new

Hi all, this is my config tsar_Marco/nixos: my personal nixos setup - Codeberg.org

When I go to rebuild, nixos rebuild with kernel lts and zfs version 2.3.5, but I declare to use zfs_2_4 with kernel 6.18. How I wrong?

Where? I see all your setting of boot.kernelPackages commented out.

Sorry I’m forget to git pull tsar_Marco/nixos: my personal nixos setup - Codeberg.org current host is nixgram

I fail to see what’s changed in that respect. On the today’s commit 75173e4dbb79 I still see all kernel setup commented out

$ git grep kernelPackages | cat
hosts/nix-tsar/configuration.nix:  #boot.kernelPackages = pkgs.linuxPackages_latest;
hosts/nixgram/configuration.nix: # boot.kernelPackages= pkgs.linuxKernel.packages.linux_6_18.zfs_2_4;
hosts/nixgram/configuration.nix:  #boot.kernelPackages = pkgs.linuxPackages_latest;

now I try to decomment pkgs.linuxPackages_latest but buid with zfs 2.3.5 instead 2.4, so I get a error because zfs 2.3 doesn’t compatible with linux 6.18

boot = {
  kernelPackages = pkgs.linuxPackages_zen;
  zfs.package = pkgs.zfs_2_4;
}

Derives to «derivation /nix/store/sfdf11h17l67zlnl3wypx906ssidp7gl-zfs-kernel-2.4.0-6.18.1.drv», which works where as ZFS 2.3.5 is marked broken.

You want to set those particular options as they hook into the various things you’ll need. Just throwing the kernel in packages does not probably evaluate the rest of the modules, like the ZFS things you saw.

2 Likes