alisonjenkins/Setup Host Nix
Configure a self-hosted runner to build via the NixOS host's Nix installation (mounted /run/current-system/sw + /nix and the host nix-daemon socket). Symlinks the nix binaries onto PATH and writes a nix.conf with flakes, caches, and tuning. Only works on self-hosted runners with the NixOS host mounts (see alisonjenkins/home-cluster nix-builder-common-values).
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 7, 2026
- License
- None
Pinned Snippet
uses: alisonjenkins/setup-host-nix@b5a0cadfd16c692fa8488e8fa4725c6afda0e2e6 # v1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| max-jobs | nix max-jobs (concurrent derivations). | no | 1 |
| cores | nix cores per job. max-jobs * cores bounds total compiler procs. | no | 4 |
| extra-substituters | Space-separated extra binary cache substituters. | no | https://cache.nixcache.org https://nix-community.cachix.org https://cache.garnix.io |
| extra-trusted-public-keys | Space-separated trusted public keys for extra-substituters. | no | nixcache.org-1:fd7sIL2BDxZa68s/IqZ8kvDsxsjt3SV4mQKdROuPoak= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g= |
Outputs
no outputs