nixos-config/config/services/renovate.nix

43 lines
935 B
Nix
Raw Normal View History

2024-09-04 19:00:38 +00:00
{
pkgs,
config,
2024-09-05 08:08:05 +00:00
cargo2nix,
system,
2024-09-04 19:00:38 +00:00
...
}: {
services.renovate = {
enable = true;
schedule = "hourly";
settings = {
platform = "gitea";
endpoint = "https://git.chir.rs";
gitAuthor = "Renovate <gitea-bot@chir.rs>";
autodiscover = true;
autodiscoverTopics = ["managed-by-renovate"];
nix.enabled = true;
lockFileMaintenance.enabled = true;
2024-09-05 07:26:57 +00:00
osvVulnerabilityAlerts = true;
2024-10-13 11:32:50 +00:00
allowedPostUpgradeCommands = [
"^cargo2nix -o$"
"^alejandra \\.$"
2024-10-13 12:18:49 +00:00
"^./update.sh$"
2024-10-13 11:32:50 +00:00
];
2024-09-08 18:29:03 +00:00
allowCustomCrateRegistries = true;
2024-09-05 07:26:57 +00:00
};
credentials = {
RENOVATE_TOKEN = config.sops.secrets."services/renovate".path;
2024-09-04 19:00:38 +00:00
};
runtimePackages = with pkgs; [
config.nix.package
nodejs
corepack
cargo
2024-09-05 08:08:05 +00:00
cargo2nix.packages.${system}.cargo2nix
2024-09-05 08:09:47 +00:00
alejandra
2024-10-13 12:52:56 +00:00
git-lfs
2024-09-04 19:00:38 +00:00
];
};
sops.secrets."services/renovate" = {};
}