Add start-daemon and init args

This commit is contained in:
Ana Hobden 2023-01-24 08:17:18 -08:00
parent 78b28a0bb7
commit 1cf64fd7a6

View file

@ -51,6 +51,12 @@ inputs:
mac-root-disk: mac-root-disk:
description: The root disk of the target (Mac only) description: The root disk of the target (Mac only)
required: false required: false
start-daemon:
description: If the daemon should be started
required: false
init:
description: The init system to configure (On Linux choose `none` or `systemd`, on Mac choose `none` or `launchd`)
required: false
nix-installer-url: nix-installer-url:
description: A URL pointing to a `nix-installer.sh` script description: A URL pointing to a `nix-installer.sh` script
required: false required: false
@ -235,6 +241,16 @@ runs:
echo "Set NIX_INSTALLER_LOGGER=$NIX_INSTALLER_LOGGER" echo "Set NIX_INSTALLER_LOGGER=$NIX_INSTALLER_LOGGER"
fi fi
if [ -n "${{ inputs.init }}" ]; then
export NIX_INSTALLER_INIT=${{ inputs.init }}
echo "Set NIX_INSTALLER_INIT=$NIX_INSTALLER_INIT"
fi
if [ -n "${{ inputs.start-daemon }}" ]; then
export NIX_INSTALLER_START_DAEMON=${{ inputs.start-daemon }}
echo "Set NIX_INSTALLER_START_DAEMON=$NIX_INSTALLER_START_DAEMON"
fi
if [ -n "${{ inputs.log-directives }}" ]; then if [ -n "${{ inputs.log-directives }}" ]; then
export NIX_INSTALLER_LOG_DIRECTIVES=${{ inputs.log-directives }} export NIX_INSTALLER_LOG_DIRECTIVES=${{ inputs.log-directives }}
echo "Set NIX_INSTALLER_LOG_DIRECTIVES=$NIX_INSTALLER_LOG_DIRECTIVES" echo "Set NIX_INSTALLER_LOG_DIRECTIVES=$NIX_INSTALLER_LOG_DIRECTIVES"