diff options
| author | Max Audron <audron@cocaine.farm> | 2023-09-27 12:49:16 +0200 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2023-09-27 12:49:16 +0200 |
| commit | 7f30f1c9d8b6b885081ad81e3fa3c6849b3f3548 (patch) | |
| tree | 857bde9b44f25cb321b6d4831e6db99fba3888cb /modules/gitlab/default.nix | |
| parent | add secrets submodule (diff) | |
test kubernetes deployment
Diffstat (limited to 'modules/gitlab/default.nix')
| -rw-r--r-- | modules/gitlab/default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/gitlab/default.nix b/modules/gitlab/default.nix new file mode 100644 index 0000000..078b467 --- /dev/null +++ b/modules/gitlab/default.nix @@ -0,0 +1,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"; + }; + }; +} |
