1
0
Fork 0

Khanda: more tweaks and adjustments

This commit is contained in:
Aires 2024-10-02 20:09:17 -04:00
parent 9e8a3b951a
commit 1718ae776b
3 changed files with 2 additions and 17 deletions

View file

@ -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 = [
"kvm-intel"
"surface_aggregator"
@ -85,7 +78,6 @@ in
kernelParams = [
"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 = {
cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
ipu6 = {

View file

@ -110,7 +110,6 @@ in
gnomeExtensions.alphabetical-app-grid
gnomeExtensions.appindicator
gnomeExtensions.dash-to-panel
gnomeExtensions.random-wallpaper
# Themeing
gnome.gnome-themes-extra
papirus-icon-theme

View file

@ -93,9 +93,9 @@ in
nos = "nixos-upgrade-script";
z = "zellij";
update = "upgrade";
upgrade = "nh os boot --update --ask";
upgrade = "nos";
};
loginExtra = "fastfetch";
loginExtra = "fastfetch --memory-percent-green 75 --memory-percent-yellow 90";
};
};
};