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