mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-12-04 14:12:38 -05:00
hw/gaming: fixup overrides
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / adjustor-build (push) Waiting to run
nix-build / clean-install-build (push) Waiting to run
nix-build / emudeck-build (push) Waiting to run
nix-build / hhd-ui-build (push) Waiting to run
nix-build / rofi-bluetooth-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / pacifidlog-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / adjustor-build (push) Waiting to run
nix-build / clean-install-build (push) Waiting to run
nix-build / emudeck-build (push) Waiting to run
nix-build / hhd-ui-build (push) Waiting to run
nix-build / rofi-bluetooth-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / pacifidlog-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
This commit is contained in:
parent
bd6dc9e1bb
commit
c2433f26b1
|
@ -1,28 +1,28 @@
|
||||||
{lib, ...}: {
|
{lib, ...}: {
|
||||||
boot.kernel.sysctl = {
|
boot.kernel.sysctl = {
|
||||||
# Improved file monitoring
|
# Improved file monitoring
|
||||||
"fs.inotify.max_user_instances" = 8192;
|
"fs.inotify.max_user_instances" = lib.mkOverride 100 8192; # Re-use the default from Bazzite even though the default NixOS value is higher.
|
||||||
"fs.inotify.max_user_watches" = 524288;
|
# "fs.inotify.max_user_watches" = lib.mkOverride 100 524288;
|
||||||
|
|
||||||
# Disable watchdogs for maximum performance at the cost of resiliency
|
# Disable watchdogs for maximum performance at the cost of resiliency
|
||||||
"kernel.nmi_watchdog" = 0;
|
"kernel.nmi_watchdog" = lib.mkOverride 100 0;
|
||||||
"kernel.soft_watchdog" = 0;
|
"kernel.soft_watchdog" = lib.mkDefault 0;
|
||||||
"kernel.split_lock_mitigate" = 0;
|
# "kernel.split_lock_mitigate" = lib.mkOverride 100 0;
|
||||||
"kernel.watchdog" = 0;
|
"kernel.watchdog" = lib.mkDefault 0;
|
||||||
|
|
||||||
# Network optimizations
|
# Network optimizations
|
||||||
"net.core.default_qdisc" = "fq";
|
"net.core.default_qdisc" = lib.mkDefault "fq";
|
||||||
"net.ipv4.tcp_congestion_control" = "bbr";
|
"net.ipv4.tcp_congestion_control" = lib.mkDefault "bbr";
|
||||||
"net.ipv4.tcp_mtu_probing" = lib.mkForce 1;
|
"net.ipv4.tcp_mtu_probing" = lib.mkForce 1;
|
||||||
|
|
||||||
# Memory management
|
# Memory management
|
||||||
"vm.dirty_background_bytes" = 134217728;
|
"vm.dirty_background_bytes" = lib.mkDefault 134217728;
|
||||||
"vm.dirty_bytes" = 268435456;
|
"vm.dirty_bytes" = lib.mkDefault 268435456;
|
||||||
"vm.max_map_count" = lib.mkForce 2147483642;
|
# "vm.max_map_count" = lib.mkOverride 100 2147483642;
|
||||||
"vm.page-cluster" = 0;
|
"vm.page-cluster" = lib.mkDefault 0;
|
||||||
"vm.swappiness" = 180;
|
"vm.swappiness" = lib.mkDefault 180;
|
||||||
"vm.watermark_boost_factor" = 0;
|
"vm.watermark_boost_factor" = lib.mkDefault 0;
|
||||||
"vm.watermark_scale_factor" = 125;
|
"vm.watermark_scale_factor" = lib.mkDefault 125;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
|
|
Loading…
Reference in a new issue