Skip to content

Commit

Permalink
Merge pull request #32 from cachix/install_url
Browse files Browse the repository at this point in the history
Allow overriding installation URL
  • Loading branch information
domenkozar committed May 26, 2020
2 parents 1c67340 + afb82fa commit d3c3fef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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

0 comments on commit d3c3fef

Please sign in to comment.