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

flake: remove dependency on flake-utils and enhance enforcement of formatting #46

Open jaredmontoya opened 1 week ago

jaredmontoya commented 1 week ago

In my opinion nixfmt-rfc-style is better than alejandra because alejandra makes nix code look confusing, to switch to nixfmt just replace alejandra.enable with nixfmt.enable in treefmt.nix and execute nix fmt. You might also want to enable more formatters to format non-nix nix-topology code with nix fmt by adding prettier.enable or yamlfmt.enable to treefmt.nix for full list of supported formatters check treefmt-nix