hainich: fix gitlab-runner

This commit is contained in:
hexchen 2020-11-29 04:19:32 +00:00
parent 260108a586
commit 76139aa0fb

View file

@ -11,4 +11,15 @@
registrationConfigFile = "/run/gitlab-runner.env";
};
};
systemd.services.gitlab-runner.serviceConfig = {
DynamicUser = lib.mkForce false;
User = "gitlab-runner";
};
users.users.gitlab-runner = {
home = "/var/lib/gitlab-runner";
extraGroups = [ "docker" ];
isSystemUser = true;
};
}