mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-12-16 14:01:14 +01:00
29 lines
638 B
Nix
29 lines
638 B
Nix
{ inputs, ... }: {
|
|
imports = [
|
|
inputs.treefmt-nix.flakeModule
|
|
];
|
|
|
|
perSystem = _: {
|
|
treefmt = {
|
|
# Used to find the project root
|
|
projectRootFile = "flake.lock";
|
|
|
|
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 = {
|
|
shellcheck.includes = [ "*.sh" "direnvrc" ];
|
|
shfmt.includes = [ "*.sh" "direnvrc" ];
|
|
};
|
|
};
|
|
};
|
|
}
|