nixos-config/nix/formatter.nix

17 lines
382 B
Nix
Raw Normal View History

2024-08-29 03:25:41 +02:00
{ inputs, ... }:
{
imports = [ inputs.treefmt-nix.flakeModule ];
perSystem = _: {
treefmt = {
projectRootFile = ".git/config";
programs.nixfmt.enable = true;
programs.terraform.enable = true;
programs.hclfmt.enable = true;
programs.jsonfmt.enable = true;
programs.yamlfmt.enable = true;
programs.black.enable = true;
};
};
}