diff --git a/AGENTS.md b/AGENTS.md index 26737a1..0b23dfa 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -51,7 +51,7 @@ nix run github:serokell/deploy-rs -- .#cryodev-main # Manual deployment via SSH NIX_SSHOPTS="-p 2299" nixos-rebuild switch --flake .# \ - --target-host @ --use-remote-sudo + --target-host @ --sudo --ask-sudo-password ``` ### Apps diff --git a/apps/deploy/deploy.sh b/apps/deploy/deploy.sh index 37894f3..1d87eb3 100644 --- a/apps/deploy/deploy.sh +++ b/apps/deploy/deploy.sh @@ -114,7 +114,7 @@ for entry in "${HOST_ENTRIES[@]}"; do CMD=("nixos-rebuild" "$ACTION" "--flake" "${FLAKE_URI}#${name}" "--target-host" "$address") [[ "$BUILD_HOST" != "localhost" ]] && CMD+=("--build-host" "$BUILD_HOST") - [[ "$USE_SUDO" = true ]] && CMD+=("--use-remote-sudo") + [[ "$USE_SUDO" = true ]] && CMD+=("--sudo" "--ask-sudo-password") "${CMD[@]}" || error "Activation failed for $name" success "Host '$name' updated." diff --git a/docs/deployment/cd.md b/docs/deployment/cd.md index ca9900e..628ee5e 100644 --- a/docs/deployment/cd.md +++ b/docs/deployment/cd.md @@ -153,7 +153,7 @@ nix build .#nixosConfigurations..config.system.build.toplevel # Deploy with nixos-rebuild NIX_SSHOPTS="-p 2299" nixos-rebuild switch --flake .# \ - --target-host @ --use-remote-sudo + --target-host @ --sudo --ask-sudo-password # Or using deploy-rs nix run github:serokell/deploy-rs -- .# diff --git a/docs/getting-started/first-install.md b/docs/getting-started/first-install.md index aa81dcd..3585bf9 100644 --- a/docs/getting-started/first-install.md +++ b/docs/getting-started/first-install.md @@ -256,7 +256,7 @@ Dies nutzt die Konfiguration aus `deploy.json`. Alternativ manuell: ```bash NIX_SSHOPTS="-p 2299" nixos-rebuild switch --flake .# \ - --target-host @ --use-remote-sudo + --target-host @ --sudo --ask-sudo-password ``` ## Schritt 4: Platzhalter-Secrets ersetzen diff --git a/docs/getting-started/new-client.md b/docs/getting-started/new-client.md index e8d6c44..93b1d0a 100644 --- a/docs/getting-started/new-client.md +++ b/docs/getting-started/new-client.md @@ -245,7 +245,7 @@ Alternativ manuell: ```bash NIX_SSHOPTS="-p 2299" nixos-rebuild switch --flake .#neuer-pi \ - --target-host @ --use-remote-sudo + --target-host @ --sudo --ask-sudo-password ``` --- diff --git a/docs/getting-started/reinstall.md b/docs/getting-started/reinstall.md index 7c546ef..091378c 100644 --- a/docs/getting-started/reinstall.md +++ b/docs/getting-started/reinstall.md @@ -143,7 +143,7 @@ Dann Konfiguration neu deployen: ```bash NIX_SSHOPTS="-p 2299" nixos-rebuild switch --flake .# \ - --target-host @ --use-remote-sudo + --target-host @ --sudo --ask-sudo-password ``` ## Häufige Probleme diff --git a/result b/result new file mode 120000 index 0000000..e931342 --- /dev/null +++ b/result @@ -0,0 +1 @@ +/nix/store/xmcpz8rawfcbzr528rlnm5v0fmnrd8dj-nixos-system-cryodev-main-25.11.20260309.44bae27 \ No newline at end of file