summaryrefslogtreecommitdiff
path: root/dev/treefmt.nix
blob: f18b391bef66e48a159a7266c2849ef6965e005a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ inputs, ... }:
{
  imports = [ inputs.treefmt-nix.flakeModule ];

  perSystem = {
    treefmt = {
      projectRootFile = ".git/config";

      # TODO: add actionlint
      # https://github.com/numtide/treefmt-nix/pull/146
      programs = {
        deadnix.enable = true;
        just.enable = true;
        nixfmt.enable = true;
        statix.enable = true;
      };
    };
  };
}