diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 41f5c2e..297c85f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -106,14 +106,19 @@ jobs: steps: - uses: actions/checkout@v4 + # Single-user install: the runner is a container with no systemd, and + # the --daemon installer refuses without it. - name: Install nix run: | - curl -fsSL https://nixos.org/nix/install | sh -s -- --daemon --yes - echo "/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH" + curl -fsSL https://nixos.org/nix/install | sh -s -- --no-daemon --yes + echo "$HOME/.nix-profile/bin" >> "$GITHUB_PATH" + # The installer does not enable flakes, so `nix build .#…` needs the + # features passed explicitly — a local machine that has them in + # nix.conf will build fine while CI fails without this. - name: build flake packages run: | - nix build \ + nix --extra-experimental-features "nix-command flakes" build \ .#webFrontend \ .#maestro \ .#maestro-web \