Link: https://github.com/nix-community/stylix/pull/1289 Reviewed-by: Daniel Thwaites <danth@danth.me> Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk> Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com> Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
38 lines
834 B
Nix
38 lines
834 B
Nix
{ inputs, ... }:
|
|
{
|
|
imports = [
|
|
inputs.git-hooks.flakeModule
|
|
];
|
|
|
|
perSystem =
|
|
{ config, ... }:
|
|
{
|
|
pre-commit = {
|
|
check.enable = true;
|
|
|
|
settings.hooks = {
|
|
# keep-sorted start block=yes
|
|
deadnix = {
|
|
enable = true;
|
|
settings.noUnderscore = true;
|
|
};
|
|
editorconfig-checker.enable = true;
|
|
hlint.enable = true;
|
|
statix.enable = true;
|
|
treefmt = {
|
|
enable = true;
|
|
package = config.formatter;
|
|
};
|
|
typos = {
|
|
enable = true;
|
|
settings.configuration = ''
|
|
[default.extend-identifiers]
|
|
MrSom3body="MrSom3body"
|
|
'';
|
|
};
|
|
yamllint.enable = true;
|
|
# keep-sorted end
|
|
};
|
|
};
|
|
};
|
|
}
|