diff --git a/action.yml b/action.yml index 59d260e..1502edc 100644 --- a/action.yml +++ b/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"