diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index dc5a853..453b5bf 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -10,10 +10,17 @@ jobs: # build blocks deploy — Forgejo has no cross-workflow needs. check: runs-on: nix-latest + # Settings via env, not /etc/nix/nix.conf: in the image that is a + # symlink into /nix/store, which the runner's nix-store volume + # shadows, so it dangles once the image moves on. + env: + NIX_CONFIG: | + experimental-features = nix-command flakes + build-users-group = + sandbox = false steps: - name: Prepare container for actions run: | - echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf nix-env -iA nixpkgs.nodejs_22 - name: Checkout diff --git a/.forgejo/workflows/test.yaml b/.forgejo/workflows/test.yaml index 8f80b8d..a8b5d46 100644 --- a/.forgejo/workflows/test.yaml +++ b/.forgejo/workflows/test.yaml @@ -8,10 +8,17 @@ on: jobs: check: runs-on: nix-latest + # Settings via env, not /etc/nix/nix.conf: in the image that is a + # symlink into /nix/store, which the runner's nix-store volume + # shadows, so it dangles once the image moves on. + env: + NIX_CONFIG: | + experimental-features = nix-command flakes + build-users-group = + sandbox = false steps: - name: Prepare container for actions run: | - echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf nix-env -iA nixpkgs.nodejs_22 - name: Checkout