From 52b98fc4da2294aac1c6fb59a570551407ef7cab Mon Sep 17 00:00:00 2001 From: LoricAndre <57358788+LoricAndre@users.noreply.github.com> Date: Sat, 17 Jan 2026 21:10:59 +0100 Subject: [PATCH] feat: add native option & make mkCachyKernel available to users (#20) --- flake.nix | 12 ++++++++++++ kernel-cachyos/cachySettings.nix | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/flake.nix b/flake.nix index 3d05b7d..a5d6b5d 100644 --- a/flake.nix +++ b/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; diff --git a/kernel-cachyos/cachySettings.nix b/kernel-cachyos/cachySettings.nix index 698c2ac..f677a70 100644 --- a/kernel-cachyos/cachySettings.nix +++ b/kernel-cachyos/cachySettings.nix @@ -95,6 +95,10 @@ with lib.kernel; MZEN4 = yes; X86_NATIVE_CPU = no; }; + native = { + GENERIC_CPU = no; + X86_NATIVE_CPU = yes; + }; }; tickrate = {