mirror of
https://github.com/DeterminateSystems/nix-installer-action.git
synced 2024-12-23 05:22:21 +01:00
Add start-daemon and init args
This commit is contained in:
parent
78b28a0bb7
commit
1cf64fd7a6
1 changed files with 16 additions and 0 deletions
16
action.yml
16
action.yml
|
@ -51,6 +51,12 @@ inputs:
|
|||
mac-root-disk:
|
||||
description: The root disk of the target (Mac only)
|
||||
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:
|
||||
description: A URL pointing to a `nix-installer.sh` script
|
||||
required: false
|
||||
|
@ -235,6 +241,16 @@ runs:
|
|||
echo "Set NIX_INSTALLER_LOGGER=$NIX_INSTALLER_LOGGER"
|
||||
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
|
||||
export NIX_INSTALLER_LOG_DIRECTIVES=${{ inputs.log-directives }}
|
||||
echo "Set NIX_INSTALLER_LOG_DIRECTIVES=$NIX_INSTALLER_LOG_DIRECTIVES"
|
||||
|
|
Loading…
Reference in a new issue