From 32c90ef4e737f25f57cfa9f493c9cd7f6950c508 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 27 Mar 2025 01:08:53 +0900 Subject: nix: pass through exec arguments This is useful for when a wrapper script is unnecessary. Signed-off-by: Ophestra --- options.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'options.nix') 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; -- cgit v1.3.1