initial commit
This commit is contained in:
commit
ebc1be5217
143 changed files with 7721 additions and 0 deletions
29
modules/features/desktop/earlyoom.nix
Normal file
29
modules/features/desktop/earlyoom.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ ... }:
|
||||
{
|
||||
config.dendritic.features.earlyoom = {
|
||||
nixosModules = [
|
||||
(
|
||||
{ ... }:
|
||||
{
|
||||
services.earlyoom = {
|
||||
enable = true;
|
||||
|
||||
freeMemThreshold = 15;
|
||||
freeSwapThreshold = 10;
|
||||
|
||||
extraArgs = [
|
||||
"-g"
|
||||
"--sort-by-rss"
|
||||
|
||||
"--avoid"
|
||||
"^(niri|ghostty|systemd|qemu-system.*)"
|
||||
|
||||
"--prefer"
|
||||
"^(brave|electron|chromium|firefox|libreoffice|gimp|podman|conmon)"
|
||||
];
|
||||
};
|
||||
}
|
||||
)
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue