tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
nixos/systemd: document what `scriptArgs` is for
Naïm Favier
3 years ago
84d8b9a8
b4670471
+5
-1
1 changed file
expand all
collapse all
unified
split
nixos
lib
systemd-unit-options.nix
+5
-1
nixos/lib/systemd-unit-options.nix
···
324
scriptArgs = mkOption {
325
type = types.str;
326
default = "";
327
-
description = lib.mdDoc "Arguments passed to the main process script.";
0
0
0
0
328
};
329
330
preStart = mkOption {
···
324
scriptArgs = mkOption {
325
type = types.str;
326
default = "";
327
+
example = "%i";
328
+
description = lib.mdDoc ''
329
+
Arguments passed to the main process script.
330
+
Can contain specifiers (`%` placeholders expanded by systemd, see {manpage}`systemd.unit(5)`).
331
+
'';
332
};
333
334
preStart = mkOption {