Merge branch 'main' of github.com:bloxx12/nichts
This commit is contained in:
commit
e1bb4993ca
8 changed files with 125 additions and 108 deletions
|
@ -3,13 +3,32 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
inherit
|
||||
(
|
||||
pkgs.callPackage ./kernel/xanmod.nix {
|
||||
inherit lib;
|
||||
inherit
|
||||
(pkgs)
|
||||
stdenv
|
||||
fetchFromGitHub
|
||||
kernelPatches
|
||||
buildLinux
|
||||
variant
|
||||
;
|
||||
}
|
||||
)
|
||||
xanmod_blox
|
||||
;
|
||||
in {
|
||||
# Time Zone
|
||||
time.timeZone = "Europe/Zurich";
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
console.keyMap = "de";
|
||||
security.polkit.enable = true;
|
||||
|
||||
# boot.kernelPackages = pkgs.linuxPackagesFor xanmod_blox;
|
||||
boot.kernelPackages = pkgs.linuxPackages_xanmod_latest;
|
||||
programs.nix-ld.enable = true;
|
||||
services = {
|
||||
|
|
64
hosts/temperance/kernel/xanmod.nix
Normal file
64
hosts/temperance/kernel/xanmod.nix
Normal file
|
@ -0,0 +1,64 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
buildLinux,
|
||||
kernelPatches,
|
||||
...
|
||||
}: let
|
||||
pname = "linux-xanmod";
|
||||
version = "6.11.5";
|
||||
vendorSuffix = "xanmod1";
|
||||
modDirVersion = lib.versions.pad 3 "${version}-xanmod1";
|
||||
|
||||
inherit (lib.modules) mkForce;
|
||||
inherit (lib.kernel) freeform yes no;
|
||||
xanmod_blox = buildLinux {
|
||||
inherit pname version modDirVersion;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "xanmod";
|
||||
repo = "linux";
|
||||
rev = "refs/tags/${version}-${vendorSuffix}";
|
||||
hash = "sha256-G4u0LQtIeJ0dNAmjNH0OKihmbkivYVbrbXDB9vPw2xI=";
|
||||
};
|
||||
|
||||
kernelPatches = [
|
||||
kernelPatches.bridge_stp_helper
|
||||
kernelPatches.request_key_helper
|
||||
];
|
||||
|
||||
enableCommonConfig = true;
|
||||
# Default Xanmod options
|
||||
structuredExtraConfig = {
|
||||
# CPUFreq governor Performance
|
||||
CPU_FREQ_DEFAULT_GOV_PERFORMANCE = mkForce 60 yes;
|
||||
CPU_FREQ_DEFAULT_GOV_SCHEDUTIL = mkForce 60 no;
|
||||
|
||||
# Full preemption
|
||||
PREEMPT = mkForce 60 yes;
|
||||
PREEMPT_VOLUNTARY = mkForce 60 no;
|
||||
|
||||
# Google's BBRv3 TCP congestion Control
|
||||
TCP_CONG_BBR = yes;
|
||||
DEFAULT_BBR = yes;
|
||||
|
||||
# Preemptive Full Tickless Kernel at 250Hz
|
||||
HZ = freeform "250";
|
||||
HZ_250 = yes;
|
||||
HZ_1000 = no;
|
||||
|
||||
# RCU_BOOST and RCU_EXP_KTHREAD
|
||||
RCU_EXPERT = yes;
|
||||
RCU_FANOUT = freeform "64";
|
||||
RCU_FANOUT_LEAF = freeform "16";
|
||||
RCU_BOOST = yes;
|
||||
RCU_BOOST_DELAY = freeform "0";
|
||||
RCU_EXP_KTHREAD = yes;
|
||||
};
|
||||
};
|
||||
in {
|
||||
inherit
|
||||
xanmod_blox
|
||||
;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue