fix: use Determinate Systems nix installer without --no-daemon
Build & Deploy (Nix) / build-and-deploy (push) Failing after 52s

Re-instate Determinate Systems installer with correct flags:
- install --no-confirm (not --no-daemon which it doesn't support)
- Nix installs to /nix/var/nix/profiles/default/bin
- Source daemon profile in build step

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude
2026-07-30 15:32:09 +07:00
parent 5bd3d286ce
commit 4acfa3d2e9
+4 -3
View File
@@ -15,12 +15,13 @@ jobs:
- name: Install Nix - name: Install Nix
run: | run: |
sh <(curl -L https://nixos.org/nix/install) --no-daemon 2>&1 curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix \
echo "$HOME/.nix-profile/bin" >> "$GITHUB_PATH" | sh -s -- install --no-confirm 2>&1
echo "/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH"
- name: Build with Nix - name: Build with Nix
run: | run: |
. "$HOME/.nix-profile/etc/profile.d/nix.sh" . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh || true
nix build .#teleuploader --impure --option sandbox false 2>&1 nix build .#teleuploader --impure --option sandbox false 2>&1
- name: Deploy (local — runner is on same VPS) - name: Deploy (local — runner is on same VPS)