mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 11:36:11 +01:00
30 lines
653 B
Nix
30 lines
653 B
Nix
{ inputs, ... }: {
|
|
imports = [
|
|
inputs.treefmt-nix.flakeModule
|
|
];
|
|
|
|
perSystem = {
|
|
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;
|
|
nixpkgs-fmt.enable = true;
|
|
shellcheck.enable = true;
|
|
shfmt.enable = true;
|
|
statix.enable = true;
|
|
yamlfmt.enable = true;
|
|
};
|
|
|
|
settings.formatter = {
|
|
shellcheck.includes = [ "direnvrc" ];
|
|
shfmt.includes = [ "direnvrc" ];
|
|
};
|
|
};
|
|
};
|
|
}
|