22 lines
729 B
Nix
22 lines
729 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: let
|
|
# latestCompatibleLinuxPackages = lib.pipe pkgs.linuxKernel.packages [
|
|
# builtins.attrValues
|
|
# (builtins.filter (kPkgs: (builtins.tryEval kPkgs).success && kPkgs ? kernel && kPkgs.kernel.pname == "linux" && kernelCompatible kPkgs.kernel))
|
|
# (builtins.sort (a: b: (lib.versionOlder a.kernel.version b.kernel.version)))
|
|
# lib.last
|
|
# ];
|
|
in
|
|
{
|
|
boot.zfs.extraPools = [ "fw" ];
|
|
# config.boot.zfs.package.latestCompatibleLinuxPackages is fucked, if there are multiple compatible linuxes of the same version, it picks effectively an arbitrary one
|
|
boot.kernelPackages = pkgs.linuxKernel.packages.linux_6_10;
|
|
systemd.services.zfs-mount.enable = false;
|
|
|
|
# see also fileSystems."/"
|
|
}
|