aboutsummaryrefslogtreecommitdiff
path: root/modules/gitlab/default.nix
blob: 078b467b6ef35a7082a52072ffde2d6dd0ff0bad (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
{ config, lib, pkgs, ... }:

{
  services.gitlab-runner = {
    enable = true;
    services.shell = {
      registrationConfigFile = "/etc/gitlab/runner-registration";
      executor = "shell";
      tagList = [ "shell" "claranet-de-nix-runner" "nix" ];
    };
  };

  systemd.services.gitlab-runner = {
    serviceConfig = {
      # Set `DynamicUser` under `systemd.services.gitlab-runner.serviceConfig`
      # to `lib.mkForce false` in your configuration to run this service as root.
      # You can also set `User` and `Group` options to run this service as desired user.
      # Make sure to restart service or changes won't apply.
      DynamicUser = lib.mkForce false;
      # User = "nixbuilder";
      # Group = "users";
    };
  };
}