mirror of
https://github.com/xddxdd/nix-cachyos-kernel.git
synced 2026-07-03 19:18:07 +02:00
Add localversion indicating cachyos kernel (Fixes #2)
This commit is contained in:
parent
5648c2a74c
commit
3b3bea2fc5
@ -62,6 +62,8 @@ lib.makeOverridable (
|
||||
cp -r * $out/
|
||||
'';
|
||||
};
|
||||
|
||||
defaultLocalVersion = if lto then "-cachyos-lto" else "-cachyos";
|
||||
in
|
||||
buildLinux (
|
||||
(lib.removeAttrs args [
|
||||
@ -83,6 +85,8 @@ lib.makeOverridable (
|
||||
|
||||
defconfig = args.defconfig or "cachyos_defconfig";
|
||||
|
||||
modDirVersion = args.modDirVersion or "${ver0}${defaultLocalVersion}";
|
||||
|
||||
# Clang has some incompatibilities with NixOS's default kernel config
|
||||
ignoreConfigErrors = args.ignoreConfigErrors or lto;
|
||||
|
||||
@ -91,6 +95,7 @@ lib.makeOverridable (
|
||||
(
|
||||
{
|
||||
NR_CPUS = lib.mkForce (option (freeform "8192"));
|
||||
LOCALVERSION = freeform defaultLocalVersion;
|
||||
|
||||
# Follow NixOS default config to not break etc overlay
|
||||
OVERLAY_FS = module;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user