Skip to content

Commit

Permalink
earlyoom: split args properly
Browse files Browse the repository at this point in the history
Stopped working after changes from NixOS/nixpkgs#331580
  • Loading branch information
msfjarvis committed Jan 4, 2025
1 parent c8f0ba4 commit a711550
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/nixos/profiles/desktop/earlyoom.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@
freeMemThreshold = 2;
extraArgs = [
"-g"
"--avoid '^(gnome.*|firefox.*|pipewire.*|git.*)$'" # things we want to not kill
"--prefer '^(electron|.*.exe)$'" # I wish we could kill electron permanently
# things we want to not kill
"--avoid"
"^(gnome.*|firefox.*|pipewire.*|git.*)$"
# I wish we could kill electron permanently
"--prefer"
"^(electron|.*.exe)$"
];

# we should ideally write the logs into a designated log file; or even better, to the journal
Expand Down

0 comments on commit a711550

Please sign in to comment.