hainich: fix gitlab-runner

keep-around/76139aa0fbce9c107163e81f963e5587886a7001
hexchen 2020-11-29 04:19:32 +00:00
parent 260108a586
commit 76139aa0fb
1 changed files with 11 additions and 0 deletions

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