installer: add our own latestZfsCompatibleLinuxPackages
This commit is contained in:
parent
830790e801
commit
4e105478ce
2 changed files with 12 additions and 4 deletions
|
@ -18,11 +18,11 @@
|
||||||
},
|
},
|
||||||
"nixos-unstable": {
|
"nixos-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1726658796,
|
"lastModified": 1726798147,
|
||||||
"narHash": "sha256-SiiWCVg/W8i6jvpgQj3NNd3YtV+jfnn/t3Za7hfn1iE=",
|
"narHash": "sha256-k/Ojv+MUDKUbj8JPd1MulJrf5BVz3jIUfrreMHbeTBE=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "75ac2a58e988a346960938ab16cea903a3cb053a",
|
"rev": "e88358265511d3a73b30dc6e4c15579844b35280",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -4,6 +4,14 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
latestZfsCompatibleLinuxPackages = lib.pipe pkgs.linuxKernel.packages [
|
||||||
|
builtins.attrValues
|
||||||
|
(builtins.filter (kPkgs: (builtins.tryEval kPkgs).success && kPkgs ? kernel && kPkgs.kernel.pname == "linux" && !kPkgs.zfs.meta.broken))
|
||||||
|
(builtins.sort (a: b: (lib.versionOlder a.kernel.version b.kernel.version)))
|
||||||
|
lib.last
|
||||||
|
];
|
||||||
|
in
|
||||||
{
|
{
|
||||||
# more descriptive hostname than just "nixos"
|
# more descriptive hostname than just "nixos"
|
||||||
networking.hostName = lib.mkDefault "nixos-installer";
|
networking.hostName = lib.mkDefault "nixos-installer";
|
||||||
|
@ -16,7 +24,7 @@
|
||||||
|
|
||||||
# use latest kernel we can support to get more hardware support
|
# use latest kernel we can support to get more hardware support
|
||||||
boot.zfs.package = pkgs.zfsUnstable;
|
boot.zfs.package = pkgs.zfsUnstable;
|
||||||
boot.kernelPackages = pkgs.zfsUnstable.latestCompatibleLinuxPackages;
|
boot.kernelPackages = latestZfsCompatibleLinuxPackages;
|
||||||
|
|
||||||
documentation.enable = false;
|
documentation.enable = false;
|
||||||
documentation.man.man-db.enable = false;
|
documentation.man.man-db.enable = false;
|
||||||
|
|
Loading…
Reference in a new issue