forked from nix-community/nix-init
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformatters.nix
More file actions
33 lines (31 loc) · 717 Bytes
/
formatters.nix
File metadata and controls
33 lines (31 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ inputs, ... }:
{
imports = [ inputs.treefmt-nix.flakeModule ];
perSystem =
{ pkgs, ... }:
{
treefmt = {
# Used to find the project root
projectRootFile = ".git/config";
programs = {
rustfmt.enable = true;
nixfmt.enable = true;
nixfmt.package = pkgs.nixfmt-rfc-style;
deno.enable = true;
deadnix.enable = true;
actionlint.enable = true;
};
settings.global.excludes = [
"*.toml"
"*.snap"
"*/go.mod"
"*/go.sum"
"*.go"
".github/dependabot.yml"
".mergify.yml"
"assets/*"
"LICENSE"
];
};
};
}