Closed jheidbrink closed 6 months ago
The one runner pod is persisted between workflow runs, not sure if this might be a problem.
When spawning a shell in the runner I can run nix-info
by doing the following:
git clone --depth 1 https://github.com/NixOS/nixpkgs
NIX_PATH="nixpkgs=$HOME/nixpkgs" $HOME/.nix-profile/bin/nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 5.10.186-179.751.amzn2.x86_64, Ubuntu, 20.04.6 LTS (Focal Fossa), nobuild`
- multi-user?: `no`
- sandbox: `yes`
- version: `nix-env (Nix) 2.16.1`
- nixpkgs: `/home/runner/nixpkgs`
edit: And this way I can also fix the workflow
It does not set NIX_PATH
by default, so it must have been your self-hosted runner configuration that set it?
Either way, you should be able to pass nix_path
input to address this.
I have no clue how it has worked if the installation doesn't set NIX_PATH ;)
When adding
with:
nix_path: nixpkgs=channel:nixos-2305
I get
Run nix-shell -p nix-info --run "nix-info -m"
warning: Nix search path entry 'channel:nixos-2305' cannot be downloaded, ignoring
and then the same error as in my initial message.
@jheidbrink, aren't you missing a period in the channel version?
+ nix_path: nixpkgs=channel:nixos-23.05
- nix_path: nixpkgs=channel:nixos-2305
We deploy self-hosted runners to EKS using the actions-runner-controller Helm chart. There is usually exactly one runner pod. When I initially tried
install-nix-action
, it worked without issues. After manually deleting the runner pod and waiting until a fresh pod is deployed,nix-install-action
succeeds, but Nix is not usable.The following workflow code
leads to the following error (in the "Verify Nix installation" step):