oddlama / nix-topology

🍁 Generate infrastructure and network diagrams directly from your NixOS configurations
https://oddlama.github.io/nix-topology
MIT License
490 stars 20 forks source link

Manually set the node id #35

Closed autrimpo closed 1 month ago

autrimpo commented 1 month ago

This looks like a very cool project!

However, I'm struggling to use it with some hosts I have. It seems the default node id when parsing nixosConfigurations is taken from networking.hostName. This is an issue when using e.g., Proxmox LXC configurations and letting Proxmox manage the hostname, as it will be forcefully set to empty. This results in all of the "nodes" being merged into one. Would it be possible to add an option to use a different value?

autrimpo commented 1 month ago

Found config.topology.id which does exactly what I want :)