{ inputs, system }: inputs.treefmt-nix.lib.evalModule inputs.nixpkgs.legacyPackages.${system} { projectRootFile = "flake.nix"; programs.nixfmt.enable = true; settings.formatter.nixfmt.excludes = [ "configs/nixos/hosts/*/hardware-configuration.nix" "third_party/**" ]; }