updated docs and ai shit

This commit is contained in:
steffen 2026-03-14 11:44:41 +01:00
parent 8f83105aa4
commit 1653398873
6 changed files with 478 additions and 114 deletions

View file

@ -152,7 +152,9 @@ For hosts not using automated deployment:
nix build .#nixosConfigurations.<hostname>.config.system.build.toplevel
# Deploy with nixos-rebuild
nixos-rebuild switch --flake .#<hostname> --target-host root@<hostname>
nixos-rebuild switch --flake .#<hostname> \
--target-host <user>@<hostname> --use-remote-sudo \
--ssh-option="-p 2299"
# Or using deploy-rs
nix run github:serokell/deploy-rs -- .#<hostname>

View file

@ -252,7 +252,9 @@ Ebenso in `hosts/<hostname>/services/sops.nix` die Secrets-Definitionen wieder e
### 3.5 Deployen
```bash
nixos-rebuild switch --flake .#<hostname> --target-host root@<IP>
nixos-rebuild switch --flake .#<hostname> \
--target-host <user>@<IP> --use-remote-sudo \
--ssh-option="-p 2299"
```
## Schritt 4: Platzhalter-Secrets ersetzen
@ -289,7 +291,9 @@ Nachdem der Server mit Headscale und Forgejo laeuft, die Platzhalter durch echte
5. **Erneut deployen**:
```bash
nixos-rebuild switch --flake .#<hostname> --target-host root@<IP>
nixos-rebuild switch --flake .#<hostname> \
--target-host <user>@<IP> --use-remote-sudo \
--ssh-option="-p 2299"
```
## Naechste Schritte

View file

@ -244,7 +244,9 @@ Da Comin auf dem Pi läuft, wird er die neue Konfiguration automatisch pullen.
Alternativ manuell:
```bash
nixos-rebuild switch --flake .#neuer-pi --target-host root@<IP>
nixos-rebuild switch --flake .#neuer-pi \
--target-host <user>@<IP> --use-remote-sudo \
--ssh-option="-p 2299"
```
---

View file

@ -142,7 +142,9 @@ sops updatekeys hosts/<hostname>/secrets.yaml
Dann Konfiguration neu deployen:
```bash
nixos-rebuild switch --flake .#<hostname> --target-host root@<IP>
nixos-rebuild switch --flake .#<hostname> \
--target-host <user>@<IP> --use-remote-sudo \
--ssh-option="-p 2299"
```
## Häufige Probleme