Use specific nix forgejo CI

This commit is contained in:
Fabian Hauser 2024-10-03 13:46:37 +03:00
parent 8fed325e09
commit 1953180bf8
7 changed files with 270 additions and 61 deletions

View file

@ -2,7 +2,6 @@
{
imports = [
./gitlab-runner.nix
./attic.nix
./nixpkgs-cache.nix
];

View file

@ -1,27 +0,0 @@
{ config, pkgs, ... }:
{
services.gitlab-runner = {
enable = true;
gracefulTimeout = "20min";
clear-docker-cache = {
enable = true;
dates = "monthly";
};
services = {
default = {
runUntagged = true;
# File should contain at least these two variables:
# `CI_SERVER_URL`
# `REGISTRATION_TOKEN`
registrationConfigFile = config.sops.secrets."gitlab-runner/default-registration".path;
dockerImage = "debian:stable";
limit = 42; # The magic value
maximumTimeout = 7200; # 2h oughta be enough for everyone
};
};
};
}