feat(desktop): do some more settings for better performance.

This commit is contained in:
CronyAkatsuki 2025-10-02 20:10:22 +02:00
parent 1afa04235f
commit d155147165
4 changed files with 38 additions and 2 deletions

View file

@ -0,0 +1,16 @@
{
config,
lib,
...
}: {
options = {
crony.boot.enable = lib.mkEnableOption "Enable and setup kernel related parameters";
};
config = lib.mkIf config.crony.boot.enable {
boot.kernel.sysctl = {
"vm.swappiness" = 10;
"kernel.nmi_watchdog" = 0;
};
};
}