mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
33 lines
706 B
Nix
33 lines
706 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;
|
|
};
|
|
|
|
settings.formatter =
|
|
let
|
|
shellIncludes = [ "*.sh" "direnvrc" ];
|
|
in
|
|
{
|
|
shellcheck.includes = shellIncludes;
|
|
shfmt.includes = shellIncludes;
|
|
};
|
|
};
|
|
};
|
|
}
|