nixos/earlyoom: mention extraArgs breakage and fix example

The shell-escaping breaks space handling and also makes the example
outdated. This breakage is missed in the previous change.

Also mention it in the release note.
This commit is contained in:
oxalica
2025-01-06 15:44:14 -05:00
parent a8af4a1033
commit a189e89e2a
2 changed files with 11 additions and 2 deletions
@@ -152,6 +152,10 @@
access or want to access home directory via `killHook`, hardening setting can
be changed via, e.g. `systemd.services.earlyoom.serviceConfig.ProtectSystem`.
`services.earlyoom.extraArgs` is now shell-escaped for each element without
word-breaking. So you want to write `extraArgs = [ "--prefer" "spaced pat" ]`
rather than previous `extraArgs = [ "--prefer 'spaced pat'" ]`.
- `nodePackages.vls` has been deprecated, as the upstream consumer of it, vetur, has been deprecated by upstream. Upstream suggests migrating to Volar for Vue LSP tooling instead.
- `nodePackages.create-react-native-app` has been removed, as it is deprecated. Upstream suggests using a framework for React Native apps instead.
+7 -2
View File
@@ -139,9 +139,14 @@ in
default = [ ];
example = [
"-g"
"--prefer '(^|/)(java|chromium)$'"
"--prefer"
"(^|/)(java|chromium)$"
];
description = "Extra command-line arguments to be passed to earlyoom.";
description = ''
Extra command-line arguments to be passed to earlyoom. Each element in
the value list will be escaped as an argument without further
word-breaking.
'';
};
};