xanmod: working kernel? (maybe)
This commit is contained in:
parent
011b66ca45
commit
bb7972d4ab
2 changed files with 11 additions and 8 deletions
|
@ -28,7 +28,8 @@ in {
|
||||||
console.keyMap = "de";
|
console.keyMap = "de";
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackagesFor xanmod_blox;
|
# boot.kernelPackages = pkgs.linuxPackagesFor xanmod_blox;
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_xanmod_latest;
|
||||||
programs.nix-ld.enable = true;
|
programs.nix-ld.enable = true;
|
||||||
services = {
|
services = {
|
||||||
fstrim.enable = lib.mkDefault true;
|
fstrim.enable = lib.mkDefault true;
|
||||||
|
|
|
@ -7,10 +7,12 @@
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
pname = "linux-xanmod";
|
pname = "linux-xanmod";
|
||||||
version = "6.11.3";
|
version = "6.11.5";
|
||||||
vendorSuffix = "xanmod1";
|
vendorSuffix = "xanmod1";
|
||||||
modDirVersion = lib.versions.pad 3 "${version}-xanmod1";
|
modDirVersion = lib.versions.pad 3 "${version}-xanmod1";
|
||||||
|
|
||||||
|
inherit (lib.modules) mkForce;
|
||||||
|
inherit (lib.kernel) freeform yes no;
|
||||||
xanmod_blox = buildLinux {
|
xanmod_blox = buildLinux {
|
||||||
inherit pname version modDirVersion;
|
inherit pname version modDirVersion;
|
||||||
|
|
||||||
|
@ -18,7 +20,7 @@
|
||||||
owner = "xanmod";
|
owner = "xanmod";
|
||||||
repo = "linux";
|
repo = "linux";
|
||||||
rev = "refs/tags/${version}-${vendorSuffix}";
|
rev = "refs/tags/${version}-${vendorSuffix}";
|
||||||
hash = "sha256-Pb/7XToBFZstI1DFgWg4a2HiRuSzA9rEsMBLb6fRvYc=";
|
hash = "sha256-G4u0LQtIeJ0dNAmjNH0OKihmbkivYVbrbXDB9vPw2xI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
kernelPatches = [
|
kernelPatches = [
|
||||||
|
@ -28,14 +30,14 @@
|
||||||
|
|
||||||
enableCommonConfig = true;
|
enableCommonConfig = true;
|
||||||
# Default Xanmod options
|
# Default Xanmod options
|
||||||
structuredExtraConfig = with lib.kernel; {
|
structuredExtraConfig = {
|
||||||
# CPUFreq governor Performance
|
# CPUFreq governor Performance
|
||||||
CPU_FREQ_DEFAULT_GOV_PERFORMANCE = lib.mkOverride 60 yes;
|
CPU_FREQ_DEFAULT_GOV_PERFORMANCE = mkForce 60 yes;
|
||||||
CPU_FREQ_DEFAULT_GOV_SCHEDUTIL = lib.mkOverride 60 no;
|
CPU_FREQ_DEFAULT_GOV_SCHEDUTIL = mkForce 60 no;
|
||||||
|
|
||||||
# Full preemption
|
# Full preemption
|
||||||
PREEMPT = lib.mkOverride 60 yes;
|
PREEMPT = mkForce 60 yes;
|
||||||
PREEMPT_VOLUNTARY = lib.mkOverride 60 no;
|
PREEMPT_VOLUNTARY = mkForce 60 no;
|
||||||
|
|
||||||
# Google's BBRv3 TCP congestion Control
|
# Google's BBRv3 TCP congestion Control
|
||||||
TCP_CONG_BBR = yes;
|
TCP_CONG_BBR = yes;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue