···8080SVG diagrams are auto-generated from NixOS configs. Physical connections and networks are defined in `topology.nix`.
81818282```bash
8383-nix build .#topology.x86_64-linux.config.output
8484-# SVGs in ./result/
8383+# On the server (renderer requires Linux):
8484+ssh server
8585+nix build ~/.config/nix-config#topology.x86_64-linux.config.output
8586```
86878788When adding a new host, add its interfaces and physical connections to `topology.nix`.
+8-3
README.md
···110110Physical connections and networks that can't be inferred automatically are
111111defined in `topology.nix`.
112112113113-**Render the diagrams:**
113113+**Render the diagrams** (must run on Linux — SSH to the server or use a remote builder):
114114115115```bash
116116-nix build .#topology.x86_64-linux.config.output
117117-# SVGs are in ./result/
116116+# On the server:
117117+ssh server
118118+nix build ~/.config/nix-config#topology.x86_64-linux.config.output
119119+120120+# Or from macOS with the server as a remote builder:
121121+nix build .#topology.x86_64-linux.config.output \
122122+ --builders 'ssh://server x86_64-linux'
118123```
119124120125This produces two diagrams: