oddlama / nix-topology

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

feat(extractors/services): add dnsmasq #20

Closed IogaMaster closed 6 months ago

IogaMaster commented 6 months ago

Converts the dns, domain to address mappings into details

        services.dnsmasq = {
          enable = true;
          settings.address = [
            "/home.lan/192.168.25.125"
            "/example.com/192.168.25.25"
          ];
        };

image

JayRovacsek commented 6 months ago

Ah, very nice idea!

Just some thoughts (and not meant to be feedback for this PR but food for thought in the future) I could see some configurations becoming quite large in mappings they might have configured, so just noting we might want to return to the parsing of settings.addresses as possibly split from normal vs detailed view (pending where/if https://github.com/oddlama/nix-topology/issues/15 changes that concept into the future)

All in all, I love it - going to add a similar split to blocky if there is appetite to merge this :heart_eyes:

IogaMaster commented 6 months ago

I agree, in #19. Caddy can serve many services and load balance, which can add quite a few options. So possibly adding a threshold, where after let's say 10 lines, all others are hidden behind .... Then the detailed view would have all of the details, ignoring the threshold.

IogaMaster commented 6 months ago

@oddlama The issues have been fixed

IogaMaster commented 6 months ago

@oddlama Merge conflicts fixed

oddlama commented 6 months ago

Awesome! Thanks a lot!