diff --git a/nix/process-compose/cli.nix b/nix/process-compose/cli.nix index a393b84..9028ceb 100644 --- a/nix/process-compose/cli.nix +++ b/nix/process-compose/cli.nix @@ -33,6 +33,11 @@ in default = { }; type = types.submodule { options = { + detached = mkOption { + type = types.bool; + default = false; + description = "Pass --detached to process-compose"; + }; log-file = mkOption { type = types.nullOr types.str; default = null; @@ -80,7 +85,8 @@ in readOnly = true; description = "The final CLI arguments we will pass to process-compose binary."; default = let o = config.cli.options; in lib.escapeShellArgs ( - (lib.optionals (o.log-file != null) [ "--log-file" o.log-file ]) + (lib.optionals o.detached [ "--detached" ]) + ++ (lib.optionals (o.log-file != null) [ "--log-file" o.log-file ]) ++ (lib.optionals o.no-server [ "--no-server" ]) ++ (lib.optionals o.ordered-shutdown [ "--ordered-shutdown" ]) ++ (lib.optionals (o.port != null) [ "--port" "${builtins.toString o.port}" ])