Adapt NixOS configurations to new kernel package parameters
Some checks failed
nix flake check / check (aarch64-linux) (push) Has been cancelled
nix flake check / check (x86_64-linux) (push) Has been cancelled

This commit is contained in:
Mikael 2024-11-13 18:02:28 +01:00
parent 577a001543
commit d45360093a
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0
3 changed files with 4 additions and 10 deletions

View file

@ -49,12 +49,8 @@ imports = [
"nvidia/ga107/gsp/gsp-535.113.01.bin" "nvidia/ga107/gsp/gsp-535.113.01.bin"
]; ];
profiles = { extraProfiles = {
physical = true;
portable = true;
dm-crypt = true; dm-crypt = true;
wireless = true;
audio = true;
}; };
extraConfig = with linux-hardened.lib.kernel; { extraConfig = with linux-hardened.lib.kernel; {

View file

@ -40,10 +40,9 @@ in {
]; ];
boot.kernelPackages = let boot.kernelPackages = let
inherit (linux-hardened.packages.x86_64-linux) default; inherit (linux-hardened.packages.x86_64-linux) paravirt;
in pkgs.linuxPackagesFor (default.override { in pkgs.linuxPackagesFor (paravirt.override {
instSetArch = "x86-64-v3"; instSetArch = "x86-64-v3";
profiles = { paravirt = true; };
extraConfig = with linux-hardened.lib.kernel; { extraConfig = with linux-hardened.lib.kernel; {
NR_CPUS = 8; NR_CPUS = 8;

View file

@ -18,8 +18,7 @@
boot.kernelPackages = let boot.kernelPackages = let
inherit (linux-hardened.packages.x86_64-linux) supermicro-h11ssw; inherit (linux-hardened.packages.x86_64-linux) supermicro-h11ssw;
in pkgs.linuxPackagesFor (supermicro-h11ssw.override { in pkgs.linuxPackagesFor (supermicro-h11ssw.override {
profiles = { extraProfiles = {
physical = true;
dm-crypt = true; dm-crypt = true;
}; };