Description
nix-topology generates infrastructure and network diagrams as SVG files directly from NixOS configurations. It adds a global module where you describe your nodes and networks, while an included NixOS module collects most details from each host automatically: interfaces from systemd-networkd, known configured services, guests from microvm.nix and NixOS containers, and network information from kea. It renders two views, a main diagram of physical connections and a network-centric diagram, and propagates assigned networks through your connections. You can also add devices that are not running NixOS, such as switches, routers and printers. Setup involves adding nix-topology as a flake input, adding its overlay so rendering tools are available, and importing the modules; a flake-parts module is also provided. It is for homelab owners and administrators who manage machines with NixOS.…
Highlights
- SVG diagrams generated from NixOS configs
- Physical and network-centric views
- Reads systemd-networkd, kea and service data
- Detects microvm.nix and container guests
- Add switches, routers and printers manually
- flake-parts module available
Ratings & Reviews
No ratings yet
Be the first to rate Nix Topology.
People also visit
Nix Topology FAQ
What does nix-topology do?
It automatically creates infrastructure and network diagrams as SVGs from your NixOS configurations.
What information is extracted automatically?
Interfaces from systemd-networkd, configured services, guests from microvm.nix and NixOS containers, and network information from kea.
How do I install it?
Add nix-topology as an input to your flake.nix, add its overlay to your pkgs, define the global module and import the NixOS module on your systems. A flake-parts module is also available.
Can I include non-NixOS devices?
Yes. External devices like switches, routers and printers can be added to the topology.
What are the best Nix Topology alternatives?
Popular alternatives to Nix Topology include Shumoku, Drawthe.net and Text To Diagram Site. See all Nix Topology alternatives







