Keyboard shortcuts

Press โ† or โ†’ to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

nixdiag

Static infrastructure docs from any Nix flake: topology, module tree, flake inputs and an mdBook wiki from nixosConfigurations and darwinConfigurations.

nix run github:kucendro/nixdiag

Topology comes from the NixOS module system. Adapters read the options you already set, nixdiag.* options override them.

Both are the two-host fixture, the live demo.

What you get

FileContents
topology.d2, topology.svgfleet overview: hosts as tables of units and ports, ingress from Internet, LAN and mesh, flows between hosts
overlay.d2, overlay.svgevery mesh: members, the routes and exit nodes they carry, the control server
networks.d2, networks.svgL3: every network, derived from interface addresses or declared, the hosts on it by interface and address, default gateways
topology-<host>.d2, topology-<host>.svgper host: its units, local flows, and the hosts it talks to
modules-<host>.d2, modules-<host>.svgper host: entry file to the modules it imports, each listing its units
inputs.d2, inputs.svgflake input graph; follows edges dashed
theme.d2classes and palette every .d2 imports
wiki/book.toml, wiki/d2.css, wiki/d2.jsthe book: diagrams fit the page, โคข opens one to pan and zoom
wiki/src/index.mda stub for your own overview, replaced by indexPage
wiki/src/architecture.mdtopology diagram, networks board, overlay board
wiki/src/hosts.mdper host: location, platform, users, firewall link, default gateway, interfaces, services and their files, topology, module tree
wiki/src/services.mdevery service, the hosts running it, the file defining it
wiki/src/endpoints.mdfqdn, port, scope, host, service; ๐Ÿ”’ marks what only the VPN (mesh) reaches
wiki/src/firewall.mdper host: open ports on every interface and on each one, trusted interfaces, findings
wiki/src/inputs.md, inputs-timeline.svgevery input with its rev and lock date, how many days each trails the newest, plus duplicate detection
wiki/src/closures.md, closures.svgopt-in: per-host closure size, largest paths, fleet sharing, stacked bar chart

Next