mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
32 lines
757 B
Nix
32 lines
757 B
Nix
{ inputs, ... }:
|
|
{
|
|
imports = [ inputs.treefmt-nix.flakeModule ];
|
|
|
|
perSystem =
|
|
{ pkgs, ... }:
|
|
{
|
|
treefmt = {
|
|
# Used to find the project root
|
|
projectRootFile = ".git/config";
|
|
|
|
programs = {
|
|
deadnix.enable = true;
|
|
deno.enable = true;
|
|
mypy.enable = true;
|
|
ruff.check = true;
|
|
ruff.format = true;
|
|
nixfmt.enable = true;
|
|
nixfmt.package = pkgs.nixfmt-rfc-style;
|
|
shellcheck.enable = true;
|
|
shfmt.enable = true;
|
|
statix.enable = true;
|
|
yamlfmt.enable = true;
|
|
};
|
|
|
|
settings.formatter = {
|
|
shellcheck.includes = [ "direnvrc" ];
|
|
shfmt.includes = [ "direnvrc" ];
|
|
};
|
|
};
|
|
};
|
|
}
|