fix: remove boot.initrd.systemd.strip

This commit is contained in:
Gerg-L 2025-05-17 10:54:12 -04:00
parent 138ba047b7
commit 5b991350c7
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI

View file

@ -5,40 +5,35 @@
}: }:
{ {
boot = { boot.kernelPackages = pkgs.linuxPackagesFor (
# For linuxManualConfig to work: https://github.com/NixOS/nixpkgs/issues/368249 let
initrd.systemd.strip = false; version = "6.14.5";
src = pkgs.fetchurl {
kernelPackages = pkgs.linuxPackagesFor ( url = "mirror://kernel/linux/kernel/v${builtins.head (lib.splitVersion version)}.x/linux-${version}.tar.xz";
let hash = "sha256-KCB+xSu+qjUHAQrv+UT0QvfZ8isoa3nK9F7G3xsk9Ak=";
version = "6.14.5"; };
src = pkgs.fetchurl { in
url = "mirror://kernel/linux/kernel/v${builtins.head (lib.splitVersion version)}.x/linux-${version}.tar.xz"; (pkgs.linuxManualConfig {
hash = "sha256-KCB+xSu+qjUHAQrv+UT0QvfZ8isoa3nK9F7G3xsk9Ak="; inherit src;
inherit (config.boot) kernelPatches;
version = "${version}-gerg";
config = {
CONFIG_RUST = "y";
CONFIG_MODULES = "y";
};
configfile = ./kernelConfig;
}).overrideAttrs
(old: {
passthru = old.passthru or { } // {
features = lib.foldr (x: y: x.features or { } // y) {
efiBootStub = true;
netfilterRPFilter = true;
ia32Emulation = true;
} config.boot.kernelPatches;
}; };
in meta = old.meta or { } // {
(pkgs.linuxManualConfig { broken = false;
inherit src;
inherit (config.boot) kernelPatches;
version = "${version}-gerg";
config = {
CONFIG_RUST = "y";
CONFIG_MODULES = "y";
}; };
configfile = ./kernelConfig; })
}).overrideAttrs );
(old: {
passthru = old.passthru or { } // {
features = lib.foldr (x: y: x.features or { } // y) {
efiBootStub = true;
netfilterRPFilter = true;
ia32Emulation = true;
} config.boot.kernelPatches;
};
meta = old.meta or { } // {
broken = false;
};
})
);
};
} }