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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@
|
|||
};
|
||||
|
||||
config = lib.mkIf config.crony.watchdog.disable {
|
||||
boot.kernelParams = ["nmi_watchdog=0"];
|
||||
boot.blacklistedKernelModules = ["sp5100_tco"];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue