From 4acfa3d2e9107127f6e1f7c0c0b499178afc915d Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 30 Jul 2026 15:32:09 +0700 Subject: [PATCH] fix: use Determinate Systems nix installer without --no-daemon 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) --- .gitea/workflows/deploy.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index fae448b..9caffb8 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -15,12 +15,13 @@ jobs: - name: Install Nix run: | - sh <(curl -L https://nixos.org/nix/install) --no-daemon 2>&1 - echo "$HOME/.nix-profile/bin" >> "$GITHUB_PATH" + curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix \ + | sh -s -- install --no-confirm 2>&1 + echo "/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH" - name: Build with Nix 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 - name: Deploy (local — runner is on same VPS)