mirror of
https://github.com/xddxdd/nix-cachyos-kernel.git
synced 2026-07-03 19:18:07 +02:00
feat: add native option & make mkCachyKernel available to users (#20)
This commit is contained in:
parent
0deadd1965
commit
52b98fc4da
12
flake.nix
12
flake.nix
@ -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;
|
||||||
|
|||||||
@ -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 = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user