nixos-config/nix/formatter.nix

18 lines
427 B
Nix
Raw Normal View History

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