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-09-05 08:08:05 +00:00
|
|
|
allowedPostUpgradeCommands = ["^cargo2nix -o$"];
|
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-09-04 19:00:38 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
sops.secrets."services/renovate" = {};
|
|
|
|
}
|