{ inputs, ... }:
{
imports = [ inputs.treefmt-nix.flakeModule ];
perSystem = {
treefmt = {
projectRoot = inputs.self;
programs = {
nixfmt.enable = true;
rustfmt.enable = true;
# needs fine tuning, "catches" too much nonsensical stuff
# typos.enable = true;
# TODO: needs configuration
# taplo.enable = true;
};
};
};
}