From 1cf64fd7a68fcf464136a63c6a45bfd6e0048e92 Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Tue, 24 Jan 2023 08:17:18 -0800 Subject: [PATCH] Add start-daemon and init args --- action.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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"