mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 05:53:56 -05:00
hwModules/legion/go: add bazzite sysctl settings
This commit is contained in:
parent
a6f6c42e88
commit
6e50368096
|
@ -40,15 +40,28 @@ in {
|
||||||
|
|
||||||
blacklistedKernelModules = ["k10temp"];
|
blacklistedKernelModules = ["k10temp"];
|
||||||
extraModulePackages = with config.boot.kernelPackages; [acpi_call zenpower];
|
extraModulePackages = with config.boot.kernelPackages; [acpi_call zenpower];
|
||||||
|
|
||||||
|
kernel.sysctl = {
|
||||||
|
"fs.inotify.max_user_instances" = 8192;
|
||||||
|
"fs.inotify.max_user_watches" = 524288;
|
||||||
|
"kernel.nmi_watchdog" = 0;
|
||||||
|
"kernel.soft_watchdog" = 0;
|
||||||
|
"kernel.split_lock_mitigate" = 0;
|
||||||
|
"kernel.watchdog" = 0;
|
||||||
|
"net.core.default_qdisc" = "fq";
|
||||||
|
"net.ipv4.tcp_congestion_control" = "bbr";
|
||||||
|
"net.ipv4.tcp_mtu_probing" = 1;
|
||||||
|
"vm.dirty_background_bytes" = 134217728;
|
||||||
|
"vm.dirty_bytes" = 268435456;
|
||||||
|
"vm.max_map_count" = 2147483642;
|
||||||
|
"vm.page-cluster" = 0;
|
||||||
|
"vm.swappiness" = 180;
|
||||||
|
"vm.watermark_boost_factor" = 0;
|
||||||
|
"vm.watermark_scale_factor" = 125;
|
||||||
|
};
|
||||||
|
|
||||||
kernelModules = ["zenpower"];
|
kernelModules = ["zenpower"];
|
||||||
kernelPackages = lib.mkDefault pkgs.linuxPackages_xanmod_latest;
|
kernelPackages = lib.mkDefault pkgs.linuxPackages_xanmod_latest;
|
||||||
|
|
||||||
kernelParams = [
|
|
||||||
"kernel.split_lock_mitigate=0"
|
|
||||||
"kernel.nmi_watchdog=0"
|
|
||||||
"kernel.soft_watchdog=0"
|
|
||||||
"kernel.watchdog=0"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
|
|
Loading…
Reference in a new issue