This repository has been archived on 2026-09-17. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
nixos-config/docs/tnix-wlan-pinix.md
pijukka e8bbd5ab4d host(tnix): join the pinix access point over WLAN
wpa_supplicant needs key=value external passwords, while pinix-wifi.age
holds hostapd's raw passphrase. A oneshot unit merges both into a
root-only runtime file under /run before wpa_supplicant starts. Also
resolve ereader.domain2 via the pinix-dns node like git.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-17 12:18:55 +02:00

18 lines
956 B
Markdown

# tnix: WLAN am pinix-Router
`tnix` verbindet sich deklarativ mit der SSID `pinix`. Die Passphrase bleibt
in `secrets/pinix-wifi.age` und wird auf tnix als root-only Runtime-Secret
`age.secrets.pinixWifi` bereitgestellt.
`tnix-wpa-secrets.service` läuft vor und als erforderliche Abhängigkeit von
`wpa_supplicant.service`. Er erzeugt ausschließlich in `/run` die
External-Password-Datei, welche die bestehenden WLAN-Schlüssel mit
`psk_pinix` ergänzt. `networking.wireless.secretsFile` verweist auf diese
Runtime-Datei; NixOS setzt daraus den `ext_password_backend` für
`wpa_supplicant`. Die Datei ist nur für den Supplicant lesbar und gelangt
nicht in den Nix-Store.
Bei einer Rücknahme zuerst die vorherige Konfiguration deklarativ herstellen
und dann `sudo nixos-rebuild switch --flake .#tnix --no-reexec` ausführen. Um
unmittelbar zur vorherigen Systemgeneration zurückzukehren, steht
`sudo nixos-rebuild switch --rollback` zur Verfügung.