fix: use --sudo --ask-sudo-password instead of deprecated --use-remote-sudo
This commit is contained in:
parent
10bb0c8e34
commit
6037b55091
7 changed files with 7 additions and 6 deletions
|
|
@ -51,7 +51,7 @@ nix run github:serokell/deploy-rs -- .#cryodev-main
|
||||||
|
|
||||||
# Manual deployment via SSH
|
# Manual deployment via SSH
|
||||||
NIX_SSHOPTS="-p 2299" nixos-rebuild switch --flake .#<hostname> \
|
NIX_SSHOPTS="-p 2299" nixos-rebuild switch --flake .#<hostname> \
|
||||||
--target-host <user>@<ip> --use-remote-sudo
|
--target-host <user>@<ip> --sudo --ask-sudo-password
|
||||||
```
|
```
|
||||||
|
|
||||||
### Apps
|
### Apps
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,7 @@ for entry in "${HOST_ENTRIES[@]}"; do
|
||||||
|
|
||||||
CMD=("nixos-rebuild" "$ACTION" "--flake" "${FLAKE_URI}#${name}" "--target-host" "$address")
|
CMD=("nixos-rebuild" "$ACTION" "--flake" "${FLAKE_URI}#${name}" "--target-host" "$address")
|
||||||
[[ "$BUILD_HOST" != "localhost" ]] && CMD+=("--build-host" "$BUILD_HOST")
|
[[ "$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"
|
"${CMD[@]}" || error "Activation failed for $name"
|
||||||
success "Host '$name' updated."
|
success "Host '$name' updated."
|
||||||
|
|
|
||||||
|
|
@ -153,7 +153,7 @@ nix build .#nixosConfigurations.<hostname>.config.system.build.toplevel
|
||||||
|
|
||||||
# Deploy with nixos-rebuild
|
# Deploy with nixos-rebuild
|
||||||
NIX_SSHOPTS="-p 2299" nixos-rebuild switch --flake .#<hostname> \
|
NIX_SSHOPTS="-p 2299" nixos-rebuild switch --flake .#<hostname> \
|
||||||
--target-host <user>@<hostname> --use-remote-sudo
|
--target-host <user>@<hostname> --sudo --ask-sudo-password
|
||||||
|
|
||||||
# Or using deploy-rs
|
# Or using deploy-rs
|
||||||
nix run github:serokell/deploy-rs -- .#<hostname>
|
nix run github:serokell/deploy-rs -- .#<hostname>
|
||||||
|
|
|
||||||
|
|
@ -256,7 +256,7 @@ Dies nutzt die Konfiguration aus `deploy.json`. Alternativ manuell:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
NIX_SSHOPTS="-p 2299" nixos-rebuild switch --flake .#<hostname> \
|
NIX_SSHOPTS="-p 2299" nixos-rebuild switch --flake .#<hostname> \
|
||||||
--target-host <user>@<IP> --use-remote-sudo
|
--target-host <user>@<IP> --sudo --ask-sudo-password
|
||||||
```
|
```
|
||||||
|
|
||||||
## Schritt 4: Platzhalter-Secrets ersetzen
|
## Schritt 4: Platzhalter-Secrets ersetzen
|
||||||
|
|
|
||||||
|
|
@ -245,7 +245,7 @@ Alternativ manuell:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
NIX_SSHOPTS="-p 2299" nixos-rebuild switch --flake .#neuer-pi \
|
NIX_SSHOPTS="-p 2299" nixos-rebuild switch --flake .#neuer-pi \
|
||||||
--target-host <user>@<IP> --use-remote-sudo
|
--target-host <user>@<IP> --sudo --ask-sudo-password
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
|
||||||
|
|
@ -143,7 +143,7 @@ Dann Konfiguration neu deployen:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
NIX_SSHOPTS="-p 2299" nixos-rebuild switch --flake .#<hostname> \
|
NIX_SSHOPTS="-p 2299" nixos-rebuild switch --flake .#<hostname> \
|
||||||
--target-host <user>@<IP> --use-remote-sudo
|
--target-host <user>@<IP> --sudo --ask-sudo-password
|
||||||
```
|
```
|
||||||
|
|
||||||
## Häufige Probleme
|
## Häufige Probleme
|
||||||
|
|
|
||||||
1
result
Symbolic link
1
result
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
/nix/store/xmcpz8rawfcbzr528rlnm5v0fmnrd8dj-nixos-system-cryodev-main-25.11.20260309.44bae27
|
||||||
Loading…
Add table
Add a link
Reference in a new issue