Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/reference/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -25015,7 +25015,7 @@ one of “hivemind”, “honcho”, “mprocs”, “native”, “overmind”,


*Default:*
` native ` for devenv 2.0+, ` process-compose ` otherwise
` native ` for devenv 2.0+ or flake integration, ` process-compose ` otherwise



Expand Down
15 changes: 9 additions & 6 deletions src/modules/process-managers/native.nix
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,16 @@ in
config.processes
));

# The actual process manager command will be invoked from devenv.rs
# We just need to provide the configuration via procfileScript
# In flake mode, the native process manager runs via devenv-tasks binary.
# The command backgrounds the process so procfileScript can manage it.
process.manager.command = lib.mkDefault ''
# Native process manager is invoked directly from devenv up
# This script should not be reached
echo "Native process manager should be invoked from devenv up" >&2
exit 1
${config.task.package}/bin/devenv-tasks run \
--task-file ${config.task.config} \
--mode all \
--cache-dir ${lib.escapeShellArg config.devenv.dotfile} \
--runtime-dir ${lib.escapeShellArg config.devenv.runtime} \
${lib.concatMapStringsSep " " (name: "devenv:processes:${name}")
(lib.attrNames (lib.filterAttrs (_: p: p.start.enable) config.processes))} &
'';
};
}
4 changes: 3 additions & 1 deletion src/modules/processes.nix
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,10 @@ in
default =
if config.devenv.cli.version != null && lib.versionAtLeast config.devenv.cli.version "2.0"
then "native"
else if config.devenv.flakesIntegration
then "native"
else "process-compose";
defaultText = lib.literalMD "`native` for devenv 2.0+, `process-compose` otherwise";
defaultText = lib.literalMD "`native` for devenv 2.0+ or flake integration, `process-compose` otherwise";
example = "process-compose";
};

Expand Down