Link: https://github.com/nix-community/stylix/pull/2041
Link: https://github.com/nix-community/stylix/pull/1976#discussion_r2539186937
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
(cherry picked from commit 3a332459f4)
45 lines
1.2 KiB
Nix
45 lines
1.2 KiB
Nix
{ inputs, ... }:
|
|
{
|
|
imports = [ inputs.git-hooks.flakeModule ];
|
|
|
|
perSystem =
|
|
{ config, ... }:
|
|
{
|
|
pre-commit = {
|
|
check.enable = true;
|
|
|
|
settings.hooks = {
|
|
# keep-sorted start block=yes
|
|
all-maintainers = {
|
|
enable = true;
|
|
entry = config.apps.all-maintainers.program;
|
|
files = "^(${
|
|
builtins.concatStringsSep "|" [
|
|
''flake\.lock''
|
|
''generated\/all-maintainers.nix''
|
|
''modules\/.*\/meta\.nix''
|
|
''stylix\/maintainers\.nix''
|
|
]
|
|
})$";
|
|
};
|
|
deadnix = {
|
|
enable = true;
|
|
settings.noLambdaPatternNames = true;
|
|
};
|
|
editorconfig-checker.enable = true;
|
|
hlint.enable = true;
|
|
statix.enable = true;
|
|
treefmt = {
|
|
enable = true;
|
|
package = config.formatter;
|
|
};
|
|
typos = {
|
|
enable = true;
|
|
settings.config.default.extend-identifiers.MrSom3body = "MrSom3body";
|
|
};
|
|
yamllint.enable = true;
|
|
# keep-sorted end
|
|
};
|
|
};
|
|
};
|
|
}
|