diff --git a/.gitea/workflows/build-image.yml b/.gitea/workflows/build-image.yml index 66fe014..e279a82 100644 --- a/.gitea/workflows/build-image.yml +++ b/.gitea/workflows/build-image.yml @@ -14,15 +14,15 @@ jobs: - /home/paul/nix-ci/nix-runner-home-node:/home/node options: --user 1000:1000 steps: - - run: id - - run: ls -lah /nix - - run: ls -lah /nix/var/nix - - run: bash <(curl -L https://nixos.org/nix/install) --help - - run: bash <(curl -L https://nixos.org/nix/install) --no-daemon - - name: Checkout repo - uses: actions/checkout@v4 - - run: ls -lah + - run: | + if [ ! -f ~/.nix-profile/etc/profile.d/nix.sh ] then + bash <(curl -L https://nixos.org/nix/install) --no-daemon + fi - run: | . ~/.nix-profile/etc/profile.d/nix.sh - env | grep NIX - nix build .#image -o image.tar.gz + export NIX_CONFIG='experimental-features = nix-command flakes' + env | grep NIX | tee --append "$GITHUB_ENV" + - name: Checkout repo + uses: actions/checkout@v4 + - run: nix build .#image -o image.tar.gz + - run: ls -lah