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;
};
};
}

View file

@ -25,6 +25,7 @@
./ollama.nix
./secrets.nix
./oom.nix
./boot.nix
];
crony.bluetooth.enable = lib.mkDefault true;
@ -52,4 +53,5 @@
crony.ollama.enable = lib.mkDefault false;
crony.secrets.enable = lib.mkDefault false;
crony.oom.enable = lib.mkDefault true;
crony.boot.enable = lib.mkDefault false;
}

View file

@ -8,7 +8,6 @@
};
config = lib.mkIf config.crony.watchdog.disable {
boot.kernelParams = ["nmi_watchdog=0"];
boot.blacklistedKernelModules = ["sp5100_tco"];
};
}