summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/git/gitlab-runner-shackspace.nix
blob: a5a1247bab95c05e21168160e061ed766070ca3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ config, ... }:
let
  url = "https://git.shackspace.de/";
  # generate token from CI-token via:
  ## gitlab-runner register
  token = import <secrets/shackspace-gitlab-ci-token.nix> ;
in {
  virtualisation.docker.enable = true;
  services.gitlab-runner = {
    enable = true;
    gracefulTimeout = "120min";
    # configFile = "/var/src/secrets/runner.toml";
    configOptions = {
      concurrent = 2;
      runners = [{
        name = "nix-krebs-1.11";
        inherit token url;
        executor = "docker";
        builds_dir = "";
        docker = {
          host = "";
          image = "nixos/nix:1.11";
          privileged = false;
          disable_cache = false;
          volumes = ["/cache"];
          shm_size = 0;
        };
        cache = {};
      }];
    };
  };
}