Added a CahyOS kernel in a module
This commit is contained in:
parent
619e6e8291
commit
46c7a83fcd
@ -11,7 +11,11 @@
|
|||||||
url = "github:nix-community/lanzaboote/master";
|
url = "github:nix-community/lanzaboote/master";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Custom Kernel
|
||||||
|
nix-cachyos-kernel = {
|
||||||
|
url = "github:xddxdd/nix-cachyos-kernel/release";
|
||||||
|
};
|
||||||
# Hyprland
|
# Hyprland
|
||||||
hyprland = {
|
hyprland = {
|
||||||
url = "github:hyprwm/Hyprland";
|
url = "github:hyprwm/Hyprland";
|
||||||
|
|||||||
@ -11,6 +11,7 @@ in
|
|||||||
modules.nixos.secrets
|
modules.nixos.secrets
|
||||||
modules.nixos.desktop.bluetooth
|
modules.nixos.desktop.bluetooth
|
||||||
modules.nixos.desktop.utils
|
modules.nixos.desktop.utils
|
||||||
|
modules.nixos.gaming.kernel
|
||||||
modules.nixos.gaming.amd
|
modules.nixos.gaming.amd
|
||||||
modules.nixos.gaming.starCitizen
|
modules.nixos.gaming.starCitizen
|
||||||
modules.nixos.gaming.steam
|
modules.nixos.gaming.steam
|
||||||
|
|||||||
@ -36,6 +36,7 @@
|
|||||||
steam = ./nixos/gaming/steam.nix;
|
steam = ./nixos/gaming/steam.nix;
|
||||||
vr = ./nixos/gaming/vr.nix;
|
vr = ./nixos/gaming/vr.nix;
|
||||||
mod = ./nixos/gaming/mod.nix;
|
mod = ./nixos/gaming/mod.nix;
|
||||||
|
kernel = ./nixos/gaming/kernel.nix
|
||||||
};
|
};
|
||||||
|
|
||||||
bootloader = ./nixos/bootloader.nix;
|
bootloader = ./nixos/bootloader.nix;
|
||||||
|
|||||||
29
modules/nixos/gaming/kernel.nix
Normal file
29
modules/nixos/gaming/kernel.nix
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{ pkgs, inputs, lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
helpers = pkgs.callPackage "${inputs.nix-cachyos-kernel.outPath}/helpers.nix" {};
|
||||||
|
cachyKernel = pkgs.cachyosKernels.linux-cachyos-bore-lto.override {
|
||||||
|
cpusched = "bore";
|
||||||
|
lto = "thin";
|
||||||
|
processorOpt = "x86_64-v3";
|
||||||
|
hzTicks = "1000";
|
||||||
|
tickrate = "full";
|
||||||
|
preemptType = "full";
|
||||||
|
bbr3 = true;
|
||||||
|
ccHarder = true;
|
||||||
|
hugepage = "always";
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
nixpkgs.overlays = [ inputs.nix-cachyos-kernel.overlays.pinned ];
|
||||||
|
boot.kernelPackages = helpers.kernelModuleLLVMOverride (
|
||||||
|
pkgs.linuxKernel.packagesFor cachyKernel
|
||||||
|
);
|
||||||
|
nix.settings = {
|
||||||
|
substituters = lib.mkAfter [
|
||||||
|
"https://attic.xuyh0120.win/lantian"
|
||||||
|
];
|
||||||
|
trusted-public-keys = lib.mkAfter [
|
||||||
|
"lantian:EeAUQ+W+6r7EtwnmYjeVwx5kOGEBpjlBfPlzGlTNvHc="
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user