11.stylix/flake/dev/pre-commit.nix
Daniel Thwaites d34a05cf6c
flake: update all inputs
Update all inputs, primarily to fix the URL bar not being themed in
recent Firefox versions with the Firefox GNOME Theme enabled [1].

[1]: 26aa323340

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-09-28 11:44:16 +02:00

47 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
};
};
};
}