Skip to content

Customizing how Nix is installed #2

Description

@bitbloxhub

I'd like to use Lix with this, but currently we hard-code nixos/nix-installer-action in action.yaml:

- name: Install Nix
uses: nixos/nix-installer-action@main
with:
# build-dir in /nix works around nothing-but-nix issue 18
extra-conf: |
# authenticate github api calls so flake fetches (github: refs, the
# nixpkgs registry, the niks3 install) get the 5000/hr token limit
# instead of the 60/hr unauthenticated one shared across runner ips,
# which 403s intermittently; the installer's own github-token does not
# configure this for later nix invocations
access-tokens = github.com=${{ github.token }}
accept-flake-config = true
experimental-features = nix-command flakes
build-dir = /nix/build
system = ${{ inputs.system }}
sandbox = ${{ runner.os == 'macOS' && 'relaxed' || 'true' }}

Also we can't customize experimental-features to add things like the pipe operator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions