summaryrefslogtreecommitdiff
path: root/dev/treefmt.nix
blob: 9029cf08abd2e46bfe9c6353f6861c2207dd40c0 (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-rfc-style.enable = true;
        statix.enable = true;
      };
    };
  };
}