diff --git a/flake.nix b/flake.nix index 7e21a43..cfba29b 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,9 @@ let inherit (pkgs) linuxKernel fetchFromGitHub gccStdenv; - kernel = linuxKernel.manualConfig rec { + kernelPkg = linuxKernel.manualConfig rec { + inherit configfile; + pname = "linux-hardened"; version = "6.10.2-hardened1"; @@ -34,13 +36,12 @@ extraMakeFlags = [ "KCFLAGS=-march=${arch}" ]; isHardened = true; - inherit configfile features; + + features = { efiBootStub = true; }; }; - features = { efiBootStub = true; }; - in kernel.overrideAttrs (base: { - passthru = base.passthru // { inherit features; }; - }); + kernel = pkgs.callPackage kernelPkg { }; + in pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor kernel); in { packages.x86_64-linux = let