added not tested isntall script and some secrets

This commit is contained in:
steffen 2026-03-14 11:33:59 +01:00
parent 728edd0036
commit 8f83105aa4
5 changed files with 231 additions and 18 deletions

View file

@ -111,18 +111,29 @@ Optional per SSH verbinden (bequemer):
ssh -o StrictHostKeyChecking=no root@<IP>
```
### 2.3 Repository klonen und installieren
### 2.3 Installieren
```bash
nix-shell -p git
git clone <REPO_URL> /tmp/nixos
bash /tmp/nixos/scripts/install.sh -n <hostname>
nix --experimental-features "nix-command flakes" run \
git+<REPO_URL>#apps.x86_64-linux.install -- \
-n <hostname> \
-r <REPO_URL>
```
Alternativ, falls das Repository bereits unter `/tmp/nixos` geklont wurde:
```bash
nix --experimental-features "nix-command flakes" run /tmp/nixos#install -- -n <hostname>
```
> **Hinweis:** Die Disk-ID in `hosts/<hostname>/disks.sh` muss zur Hardware passen.
> Pruefen mit `ls -la /dev/disk/by-id/`.
Das Script partitioniert die Disk, generiert `hardware.nix` (falls noetig) und installiert NixOS.
Das Script:
1. Klont das Repository (bei `-r`)
2. Partitioniert die Disk (via `disks.nix` oder `disks.sh`)
3. Generiert `hardware.nix` (falls nicht vorhanden)
4. Installiert NixOS
### 2.4 Reboot