nixos-config/nix/formatter.nix
2024-08-29 13:22:29 +07:00

17 lines
427 B
Nix

{ inputs, ... }:
{
imports = [ inputs.treefmt-nix.flakeModule ];
perSystem = _: {
treefmt = {
# https://flake.parts/options/treefmt-nix
projectRootFile = ".git/config";
programs.nixfmt.enable = true;
programs.terraform.enable = true;
programs.hclfmt.enable = true;
programs.deno.enable = true;
programs.yamlfmt.enable = true;
programs.black.enable = true;
};
};
}