summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/shack/gitlab-runner/default.nix
blob: 55dc50fa87a407706c570a148d235cc07390cbb8 (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

{
  systemd.services.gitlab-runner.path = [
    "/run/wrappers" # /run/wrappers/bin/su
    "/" # /bin/sh
  ];
  services.gitlab-runner = {
    enable = true;
    configOptions =
    { concurrent = 1;
      runners = [
        { builds_dir = "";
          #docker =
          #{ cache_dir = "";
          #  disable_cache = true;
          #  host = ""; image = "nixos/nix:2.1.3";
          #  privileged = true;
          #};
          #executor = "docker";
          # name = "docker-nix";
          name = "gum-shell";
          executor = "shell";
          environment = [ "PATH=/bin:/run/wrappers/bin:/etc/per-user/gitlab-runner/bin:/etc/per-user-pkgs/gitlab-runner/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin" ];
          # generate via `gitlab-runner register`
          token = import <secrets/shackspace-gitlab-ci-token.nix>;
          url = "https://git.shackspace.de/";
        }
      ];
    };
  };
}