Update earlyoom settings in default.nix
- Add earlyoom configuration to hosts/semita/default.nix - Enable earlyoom to activate when system RAM drops below 5% free
This commit is contained in:
parent
53fe037aaf
commit
60f55565bc
|
@ -86,6 +86,11 @@ in {
|
||||||
dpi = 144;
|
dpi = 144;
|
||||||
upscaleDefaultCursor = true;
|
upscaleDefaultCursor = true;
|
||||||
};
|
};
|
||||||
|
# enable oom killer when system ram drops below 5% free
|
||||||
|
earlyoom = {
|
||||||
|
enable = true;
|
||||||
|
freeMemThreshold = 5; # <%5 free
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
|
|
Loading…
Reference in New Issue