infra/config/services/renovate.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

2024-09-18 15:43:28 +02:00
{
config,
inputs,
pkgs,
...
2024-09-18 16:10:20 +02:00
}:
{
imports = [ "${inputs.nixpkgs-unstable}/nixos/modules/services/misc/renovate.nix" ];
2024-09-18 15:43:28 +02:00
services.renovate = {
enable = true;
# N.B.: only needs to be specified while pulling the module from unstable
package = pkgs.unstable.renovate;
schedule = "hourly";
runtimePackages = with pkgs; [
# for nix lockfile maintenance
nix
];
settings = {
endpoint = "https://${config.services.forgejo.settings.server.DOMAIN}";
platform = "gitea";
gitAuthor = "renovate[bot] <renovate@winston.sh>";
autodiscover = true;
2024-09-18 16:10:20 +02:00
autodiscoverTopics = [ "managed-by-renovate" ];
2024-09-18 15:43:28 +02:00
# performance
cachePrivatePackages = true;
repositoryCache = "enabled";
# experimental
osvVulnerabilityAlerts = true;
};
credentials = {
# can reuse the GHCR token to read changelogs
GITHUB_COM_TOKEN = config.age.secrets."containers/ghcr-token".path;
RENOVATE_GIT_PRIVATE_KEY = config.age.secrets."services/renovate/git-private-key".path;
RENOVATE_TOKEN = config.age.secrets."services/renovate/token".path;
};
};
}