2025-11-02 23:45:16 -06:00
|
|
|
{
|
|
|
|
|
hooks,
|
|
|
|
|
lib,
|
|
|
|
|
system,
|
2025-12-07 00:22:29 -06:00
|
|
|
top,
|
2025-11-02 23:45:16 -06:00
|
|
|
...
|
|
|
|
|
}:
|
2024-10-03 11:16:06 -05:00
|
|
|
|
|
|
|
|
{
|
2024-10-03 11:26:39 -05:00
|
|
|
pre-commit-check = hooks.lib.${system}.run {
|
|
|
|
|
src = ./.;
|
|
|
|
|
hooks = {
|
2024-10-03 15:21:56 -05:00
|
|
|
deadnix.enable = true;
|
|
|
|
|
# Needs https://github.com/DeterminateSystems/flake-checker/pull/130
|
|
|
|
|
#flake-checker.enable = true;
|
2024-10-11 10:26:22 -05:00
|
|
|
nixfmt-rfc-style.enable = true;
|
2024-10-11 12:28:53 -05:00
|
|
|
check-merge-conflicts.enable = true;
|
2025-11-02 23:45:16 -06:00
|
|
|
check-yaml.enable = true;
|
|
|
|
|
yamllint = {
|
|
|
|
|
enable = true;
|
|
|
|
|
args = [
|
|
|
|
|
"--config-data"
|
|
|
|
|
(lib.generators.toYAML { } {
|
|
|
|
|
extends = "default";
|
|
|
|
|
ignore = [
|
|
|
|
|
"manifests/cnpg-system/barman-cloud.yaml"
|
|
|
|
|
".pre-commit-config.yaml"
|
|
|
|
|
];
|
|
|
|
|
rules = {
|
|
|
|
|
comments = false;
|
|
|
|
|
comments-indentation = false;
|
|
|
|
|
document-start = false;
|
|
|
|
|
};
|
|
|
|
|
})
|
|
|
|
|
];
|
|
|
|
|
verbose = true;
|
|
|
|
|
};
|
2024-10-03 11:26:39 -05:00
|
|
|
};
|
|
|
|
|
};
|
2024-10-03 11:16:06 -05:00
|
|
|
}
|
2025-12-07 00:22:29 -06:00
|
|
|
// (builtins.mapAttrs (_n: v: v.config.system.build.toplevel) top.self.nixosConfigurations)
|
|
|
|
|
// (top.self.packages.${system})
|