mirror of
https://github.com/DeterminateSystems/nix-installer-action.git
synced 2024-12-23 05:22:21 +01:00
107 lines
No EOL
4.6 KiB
YAML
107 lines
No EOL
4.6 KiB
YAML
name: The Determinate Nix Installer
|
|
branding:
|
|
icon: "box"
|
|
color: "purple"
|
|
description: "Install Nix with the Determinate Nix Installer. See: https://github.com/DeterminateSystems/nix-installer"
|
|
inputs:
|
|
backtrace:
|
|
description: The setting for `RUST_BACKTRACE` (see https://doc.rust-lang.org/std/backtrace/index.html#environment-variables)
|
|
required: false
|
|
extra-args:
|
|
description: Extra args to pass to the planner (prefer using structured `with:` arguments unless using a custom planner!)
|
|
required: false
|
|
extra-conf:
|
|
description: Extra configuration lines for `/etc/nix/nix.conf` (includes `access-tokens` with `secrets.GITHUB_TOKEN` automatically if `github-token` is set)
|
|
required: false
|
|
github-token:
|
|
description: A GitHub token for making authenticated requests (which have a higher rate-limit quota than unauthenticated requests)
|
|
default: ${{ github.token }}
|
|
init:
|
|
description: "The init system to configure, requires `planner: linux-multi` (allowing the choice between `none` or `systemd`)"
|
|
required: false
|
|
local-root:
|
|
description: A local `nix-installer` binary root, overrides any settings which change the `nix-installer` used (binaries should be named `nix-installer-$ARCH-$OS`, eg. `nix-installer-x86_64-linux`)
|
|
required: false
|
|
log-directives:
|
|
description: A list of Tracing directives, comma separated, `-`s replaced with `_` (eg. `nix_installer=trace`, see https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives)
|
|
required: false
|
|
logger:
|
|
description: The logger to use for install (eg. `pretty`, `json`, `full`, `compact`)
|
|
required: false
|
|
ssl-cert-file:
|
|
description: "An SSL cert to use (if any), used for fetching Nix and sets `NIX_SSL_CERT_FILE` for Nix"
|
|
required: false
|
|
proxy:
|
|
description: "The proxy to use (if any), valid proxy bases are `https://$URL`, `http://$URL` and `socks5://$URL`"
|
|
required: false
|
|
mac-case-sensitive:
|
|
description: "Use a case sensitive volume (`planner: macos` only)"
|
|
required: false
|
|
mac-encrypt:
|
|
description: "Force encryption on the volume (`planner: macos` only)"
|
|
required: false
|
|
mac-root-disk:
|
|
description: "The root disk of the target (`planner: macos` only)"
|
|
required: false
|
|
mac-volume-label:
|
|
description: "The label for the created APFS volume (`planner: macos` only)"
|
|
required: false
|
|
modify-profile:
|
|
description: Modify the user profile to automatically load nix
|
|
required: false
|
|
default: true
|
|
nix-build-group-id:
|
|
description: The Nix build group GID
|
|
required: false
|
|
nix-build-group-name:
|
|
description: The Nix build group name
|
|
required: false
|
|
nix-build-user-base:
|
|
description: The Nix build user base UID (ascending)
|
|
required: false
|
|
nix-build-user-count:
|
|
description: Number of build users to create
|
|
required: false
|
|
nix-build-user-prefix:
|
|
description: The Nix build user prefix (user numbers will be postfixed)
|
|
required: false
|
|
nix-installer-branch:
|
|
description: The branch of `nix-installer` to use (conflicts with `nix-installer-tag`, `nix-installer-revision`, `nix-installer-pr`)
|
|
required: false
|
|
nix-installer-pr:
|
|
description: The PR of `nix-installer` to use (conflicts with `nix-installer-tag`, `nix-installer-revision`, `nix-installer-branch`)
|
|
required: false
|
|
nix-installer-revision:
|
|
description: The revision of `nix-installer` to use (conflicts with `nix-installer-tag`, `nix-installer-branch`, `nix-installer-pr`)
|
|
required: false
|
|
nix-installer-tag:
|
|
description: The tag of `nix-installer` to use (conflicts with `nix-installer-revision`, `nix-installer-branch`, `nix-installer-pr`)
|
|
required: false
|
|
nix-installer-url:
|
|
description: A URL pointing to a `nix-installer.sh` script
|
|
required: false
|
|
nix-package-url:
|
|
description: The Nix package URL
|
|
required: false
|
|
planner:
|
|
description: A planner to use
|
|
required: false
|
|
reinstall:
|
|
description: Force a reinstall if an existing installation is detected (consider backing up `/nix/store`)
|
|
required: false
|
|
default: false
|
|
start-daemon:
|
|
description: "If the daemon should be started, requires `planner: linux`"
|
|
required: false
|
|
default: true
|
|
diagnostic-endpoint:
|
|
description: "Diagnostic endpoint url where the installer sends data to. To disable set this to an empty string."
|
|
default: "https://install.determinate.systems/nix/diagnostic"
|
|
trust-runner-user:
|
|
description: Whether to make the runner user trusted by the Nix daemon
|
|
default: "true"
|
|
|
|
runs:
|
|
using: "node16"
|
|
main: 'dist/index.js'
|
|
post: 'dist/index.js' |