aboutsummaryrefslogtreecommitdiffhomepage
path: root/options.nix
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-03-27 01:08:53 +0900
committerOphestra <cat@gensokyo.uk>2025-03-27 03:04:46 +0900
commit32c90ef4e737f25f57cfa9f493c9cd7f6950c508 (patch)
treeffae5e9d0dbdabf782663fcbbfc9388858a0b83a /options.nix
parent2a4e2724a35f322af3ae26c637c74161c4884542 (diff)
nix: pass through exec arguments
This is useful for when a wrapper script is unnecessary. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'options.nix')
-rw-r--r--options.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/options.nix b/options.nix
index 9e367732..e0bf5489 100644
--- a/options.nix
+++ b/options.nix
@@ -94,6 +94,24 @@ in
'';
};
+ path = mkOption {
+ type = nullOr str;
+ default = null;
+ description = ''
+ Custom executable path.
+ Setting this to null will default to the start script.
+ '';
+ };
+
+ args = mkOption {
+ type = nullOr (listOf str);
+ default = null;
+ description = ''
+ Custom args.
+ Setting this to null will default to script name.
+ '';
+ };
+
script = mkOption {
type = nullOr str;
default = null;