feat: add native option & make mkCachyKernel available to users

This commit is contained in:
Loric ANDRE 2026-01-05 16:24:26 +01:00
parent 694d6b48b2
commit cf43d0dfc6
2 changed files with 16 additions and 0 deletions

View File

@ -86,6 +86,18 @@
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 = {
inherit (self) packages;
nixosConfigurations = lib.mapAttrs (n: v: v.config.system.build.toplevel) self.nixosConfigurations;

View File

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