feat(desktop): do some more settings for better performance.
This commit is contained in:
parent
1afa04235f
commit
d155147165
4 changed files with 38 additions and 2 deletions
16
modules/linux/nixos/boot.nix
Normal file
16
modules/linux/nixos/boot.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue