Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow overriding installation URL #32

Merged
merged 1 commit into from May 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions action.yml
@@ -1,6 +1,9 @@
name: 'Install Nix'
description: 'Installs Nix on GitHub Actions for the supported platforms: Linux and macOS.'
author: 'Domen Kožar'
inputs:
install_url:
description: 'Installation URL that will contain a script to install Nix'
branding:
color: 'blue'
icon: 'sun'
Expand Down
2 changes: 1 addition & 1 deletion lib/install-nix.sh
Expand Up @@ -26,7 +26,7 @@ nixConf
# Needed due to multi-user being too defensive
export ALLOW_PREEXISTING_INSTALLATION=1

sh <(curl -L https://nixos.org/nix/install) --daemon
sh <(curl -L ${INPUT_INSTALL_URL:-https://nixos.org/nix/install}) --daemon

# write nix.conf again as installation overwrites it
nixConf
Expand Down