feat: add native option & make mkCachyKernel available to users (#20)

This commit is contained in:
LoricAndre 2026-01-17 21:10:59 +01:00 committed by GitHub
parent 0deadd1965
commit 52b98fc4da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 0 deletions

View File

@ -86,6 +86,18 @@
cachyosKernels = self.legacyPackages."${final.stdenv.hostPlatform.system}"; cachyosKernels = self.legacyPackages."${final.stdenv.hostPlatform.system}";
}; };
mkCachyKernel =
{ buildLinux, pkgs, ... } @ args:
(import ./kernel-cachyos/mkCachyKernel.nix) {
inherit inputs lib buildLinux args;
inherit (pkgs)
stdenv
callPackage
kernelPatches
applyPatches
;
};
hydraJobs = { hydraJobs = {
inherit (self) packages; inherit (self) packages;
nixosConfigurations = lib.mapAttrs (n: v: v.config.system.build.toplevel) self.nixosConfigurations; nixosConfigurations = lib.mapAttrs (n: v: v.config.system.build.toplevel) self.nixosConfigurations;

View File

@ -95,6 +95,10 @@ with lib.kernel;
MZEN4 = yes; MZEN4 = yes;
X86_NATIVE_CPU = no; X86_NATIVE_CPU = no;
}; };
native = {
GENERIC_CPU = no;
X86_NATIVE_CPU = yes;
};
}; };
tickrate = { tickrate = {