mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
fix: remove boot.initrd.systemd.strip
This commit is contained in:
parent
138ba047b7
commit
5b991350c7
1 changed files with 29 additions and 34 deletions
|
|
@ -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;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
);
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue