mirror of
https://github.com/nix-community/nix-init.git
synced 2024-10-05 20:38:53 +03:00
32 lines
659 B
Nix
32 lines
659 B
Nix
{ inputs, ... }:
|
|
{
|
|
imports = [ inputs.treefmt-nix.flakeModule ];
|
|
|
|
perSystem =
|
|
{ pkgs, ... }:
|
|
{
|
|
treefmt = {
|
|
# Used to find the project root
|
|
projectRootFile = ".git/config";
|
|
|
|
programs = {
|
|
rustfmt.enable = true;
|
|
nixfmt.enable = true;
|
|
nixfmt.package = pkgs.nixfmt-rfc-style;
|
|
deno.enable = true;
|
|
actionlint.enable = true;
|
|
};
|
|
settings.global.excludes = [
|
|
"*.toml"
|
|
"*.snap"
|
|
"*/go.mod"
|
|
"*/go.sum"
|
|
"*.go"
|
|
".github/dependabot.yml"
|
|
"assets/*"
|
|
"LICENSE"
|
|
];
|
|
};
|
|
};
|
|
}
|