{ treefmt, nixfmt, shfmt, }: treefmt.withConfig { runtimeInputs = [ nixfmt shfmt ]; settings = { on-unmatched = "warn"; tree-root-file = "flake.nix"; formatter = { nix = { command = "nixfmt"; includes = [ "*.nix" ]; }; shfmt = { command = "shfmt"; options = [ "-w" ]; includes = [ "*.sh" ".envrc" ]; }; }; }; }