ci(nix): set USER so cachix runs in the CI container

This commit is contained in:
Ellie Huxtable
2026-10-05 15:31:06 -07:00
committed by GitHub
parent bfb2953eb7
commit 2b9591d9ab
+2
View File
@@ -130,5 +130,7 @@ install_nix() {
--extra-conf "extra-substituters = https://atuin.cachix.org" \
--extra-conf "extra-trusted-public-keys = atuin.cachix.org-1:aNJ8IU+udXIYNtrF+LHH8yIzXqgmva4hVnuHq2REgK0="
export PATH="/nix/var/nix/profiles/default/bin:$PATH"
# cachix refuses to run without $USER, which the CI container leaves unset.
export USER="${USER:-$(id -un)}"
nix --version
}