nixos-config/config/services/renovate.nix
Charlotte 🦝 Delenk 67631fa663
All checks were successful
update-riscv / pr (push) Successful in 3s
Hydra nas.x86_64-linux Hydra build #15113 of nixos-config:pr577:nas.x86_64-linux
add git-lfs to renovate
2024-10-13 14:52:56 +02:00

42 lines
935 B
Nix

{
pkgs,
config,
cargo2nix,
system,
...
}: {
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;
osvVulnerabilityAlerts = true;
allowedPostUpgradeCommands = [
"^cargo2nix -o$"
"^alejandra \\.$"
"^./update.sh$"
];
allowCustomCrateRegistries = true;
};
credentials = {
RENOVATE_TOKEN = config.sops.secrets."services/renovate".path;
};
runtimePackages = with pkgs; [
config.nix.package
nodejs
corepack
cargo
cargo2nix.packages.${system}.cargo2nix
alejandra
git-lfs
];
};
sops.secrets."services/renovate" = {};
}