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
This commit is contained in:
parent
694d6b48b2
commit
cf43d0dfc6
12
flake.nix
12
flake.nix
@ -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;
|
||||
|
||||
@ -95,6 +95,10 @@ with lib.kernel;
|
||||
MZEN4 = yes;
|
||||
X86_NATIVE_CPU = no;
|
||||
};
|
||||
native = {
|
||||
GENERIC_CPU = no;
|
||||
X86_NATIVE_CPU = yes;
|
||||
};
|
||||
};
|
||||
|
||||
tickrate = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user