forked from Mic92/nix-update
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtreefmt.nix
28 lines (23 loc) · 807 Bytes
/
treefmt.nix
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
{ inputs, ... }:
{
imports = [ inputs.treefmt-nix.flakeModule ];
perSystem =
{ pkgs, ... }:
{
treefmt = {
# Used to find the project root
projectRootFile = "flake.lock";
programs.deno.enable =
pkgs.hostPlatform.system != "x86_64-darwin" && pkgs.hostPlatform.system != "riscv64-linux";
programs.mypy.enable = true;
programs.yamlfmt.enable = true;
programs.nixfmt.enable = pkgs.hostPlatform.system != "riscv64-linux";
programs.deadnix.enable = true;
programs.ruff.format = true;
programs.ruff.check = true;
programs.shellcheck.enable = pkgs.hostPlatform.system != "riscv64-linux";
programs.shfmt.enable = true;
settings.formatter.shfmt.includes = [ "*.envrc" ];
};
};
}