be able to pass installer options
This commit is contained in:
parent
3349b09732
commit
2e56a105a6
@ -3,7 +3,9 @@ description: 'Installs Nix on GitHub Actions for the supported platforms: Linux
|
|||||||
author: 'Domen Kožar'
|
author: 'Domen Kožar'
|
||||||
inputs:
|
inputs:
|
||||||
install_url:
|
install_url:
|
||||||
description: 'Installation URL that will contain a script to install Nix'
|
description: 'Installation URL that will contain a script to install Nix.'
|
||||||
|
install_options:
|
||||||
|
description: 'Additional installer flags passed to the installer script.'
|
||||||
nix_path:
|
nix_path:
|
||||||
description: 'Set NIX_PATH environment variable.'
|
description: 'Set NIX_PATH environment variable.'
|
||||||
extra_nix_config:
|
extra_nix_config:
|
||||||
|
@ -27,7 +27,11 @@ installer_options=(
|
|||||||
--darwin-use-unencrypted-nix-store-volume
|
--darwin-use-unencrypted-nix-store-volume
|
||||||
--nix-extra-conf-file /tmp/nix.conf
|
--nix-extra-conf-file /tmp/nix.conf
|
||||||
)
|
)
|
||||||
|
if [[ $INPUT_INSTALL_OPTIONS != "" ]]; then
|
||||||
|
installer_options=("${installer_options[@]}" "${INPUT_INSTALL_OPTIONS[@]}")
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "installer options: ${installer_options[@]}"
|
||||||
# On self-hosted runners we don't need to install more than once
|
# On self-hosted runners we don't need to install more than once
|
||||||
if [[ ! -d /nix/store ]]
|
if [[ ! -d /nix/store ]]
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user