Khanda: more tweaks and adjustments
This commit is contained in:
parent
9e8a3b951a
commit
1718ae776b
|
@ -61,13 +61,6 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Improve Khanda's responsiveness
|
|
||||||
kernel.sysctl = {
|
|
||||||
"vm.swappiness" = 20; # Try to reduce swappiness - Khanda hates paging, even to NVMe storage
|
|
||||||
"vm.vfs_cache_pressure" = 50; # https://wiki.archlinux.org/title/Sysctl#VFS_cache
|
|
||||||
"kernel.core_pattern" = "|${pkgs.coreutils}/bin/false"; # Disable core dumps per https://wiki.archlinux.org/title/Core_dump#Using_sysctl
|
|
||||||
};
|
|
||||||
|
|
||||||
kernelModules = [
|
kernelModules = [
|
||||||
"kvm-intel"
|
"kvm-intel"
|
||||||
"surface_aggregator"
|
"surface_aggregator"
|
||||||
|
@ -85,7 +78,6 @@ in
|
||||||
|
|
||||||
kernelParams = [
|
kernelParams = [
|
||||||
"pci=hpiosize=0" # Prevent ACPI interrupt storm. See https://github.com/linux-surface/linux-surface/wiki/Surface-Pro-9#acpi-interrupt-storm
|
"pci=hpiosize=0" # Prevent ACPI interrupt storm. See https://github.com/linux-surface/linux-surface/wiki/Surface-Pro-9#acpi-interrupt-storm
|
||||||
"nvme_core.default_ps_max_latency_us=0" # Disable NVME powersaving to prevent system stuttering. See https://forums.linuxmint.com/viewtopic.php?t=392387
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -102,12 +94,6 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Change I/O scheduler to Kyber to try and reduce stuttering under load.
|
|
||||||
# NVME supports `mq-deadline` and `kyber` schedulers
|
|
||||||
services.udev.extraRules = ''
|
|
||||||
ACTION=="add|change", KERNEL=="nvme0n1", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="kyber"
|
|
||||||
'';
|
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
ipu6 = {
|
ipu6 = {
|
||||||
|
|
|
@ -110,7 +110,6 @@ in
|
||||||
gnomeExtensions.alphabetical-app-grid
|
gnomeExtensions.alphabetical-app-grid
|
||||||
gnomeExtensions.appindicator
|
gnomeExtensions.appindicator
|
||||||
gnomeExtensions.dash-to-panel
|
gnomeExtensions.dash-to-panel
|
||||||
gnomeExtensions.random-wallpaper
|
|
||||||
# Themeing
|
# Themeing
|
||||||
gnome.gnome-themes-extra
|
gnome.gnome-themes-extra
|
||||||
papirus-icon-theme
|
papirus-icon-theme
|
||||||
|
|
|
@ -93,9 +93,9 @@ in
|
||||||
nos = "nixos-upgrade-script";
|
nos = "nixos-upgrade-script";
|
||||||
z = "zellij";
|
z = "zellij";
|
||||||
update = "upgrade";
|
update = "upgrade";
|
||||||
upgrade = "nh os boot --update --ask";
|
upgrade = "nos";
|
||||||
};
|
};
|
||||||
loginExtra = "fastfetch";
|
loginExtra = "fastfetch --memory-percent-green 75 --memory-percent-yellow 90";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue