From a711550e4e38256a2834a40a893fddbab206c359 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 4 Jan 2025 19:09:08 +0530 Subject: [PATCH] earlyoom: split args properly Stopped working after changes from https://github.com/NixOS/nixpkgs/pull/331580 --- modules/nixos/profiles/desktop/earlyoom.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/nixos/profiles/desktop/earlyoom.nix b/modules/nixos/profiles/desktop/earlyoom.nix index 869b0d57..dbc81336 100644 --- a/modules/nixos/profiles/desktop/earlyoom.nix +++ b/modules/nixos/profiles/desktop/earlyoom.nix @@ -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