2019-10-03 00:17:18 +10:00
|
|
|
name: 'Install Nix'
|
|
|
|
description: 'Installs Nix on GitHub Actions for the supported platforms: Linux and macOS.'
|
2019-09-30 05:52:02 +10:00
|
|
|
author: 'Domen Kožar'
|
2020-05-14 21:21:40 +10:00
|
|
|
inputs:
|
2022-12-28 05:51:55 +11:00
|
|
|
extra_nix_config:
|
|
|
|
description: 'Gets appended to `/etc/nix/nix.conf` if passed.'
|
|
|
|
github_access_token:
|
|
|
|
description: 'Configure nix to pull from github using the given github token.'
|
2020-05-14 21:21:40 +10:00
|
|
|
install_url:
|
2021-02-21 08:46:57 +11:00
|
|
|
description: 'Installation URL that will contain a script to install Nix.'
|
|
|
|
install_options:
|
|
|
|
description: 'Additional installer flags passed to the installer script.'
|
2020-05-29 00:25:05 +10:00
|
|
|
nix_path:
|
2020-09-21 21:51:23 +10:00
|
|
|
description: 'Set NIX_PATH environment variable.'
|
2019-09-30 05:52:02 +10:00
|
|
|
branding:
|
|
|
|
color: 'blue'
|
|
|
|
icon: 'sun'
|
|
|
|
runs:
|
2022-04-09 05:33:50 +10:00
|
|
|
using: 'composite'
|
|
|
|
steps:
|
2023-05-03 22:28:02 +10:00
|
|
|
- run : ${GITHUB_ACTION_PATH}/install-nix.sh
|
2022-04-09 05:33:50 +10:00
|
|
|
shell: bash
|
|
|
|
env:
|
2022-12-28 05:51:55 +11:00
|
|
|
INPUT_EXTRA_NIX_CONFIG: ${{ inputs.extra_nix_config }}
|
|
|
|
INPUT_GITHUB_ACCESS_TOKEN: ${{ inputs.github_access_token }}
|
2022-04-09 05:33:50 +10:00
|
|
|
INPUT_INSTALL_OPTIONS: ${{ inputs.install_options }}
|
2022-12-28 05:51:55 +11:00
|
|
|
INPUT_INSTALL_URL: ${{ inputs.install_url }}
|
2022-04-09 05:33:50 +10:00
|
|
|
INPUT_NIX_PATH: ${{ inputs.nix_path }}
|
2023-02-06 02:35:01 +11:00
|
|
|
GITHUB_TOKEN: ${{ github.token }}
|