aboutsummaryrefslogtreecommitdiff
path: root/modules/gitlab/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gitlab/default.nix')
-rw-r--r--modules/gitlab/default.nix24
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";
+ };
+ };
+}