{ 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"; }; }; }