forked from hacc/haccfiles
hainich: fix gitlab-runner
This commit is contained in:
parent
260108a586
commit
76139aa0fb
1 changed files with 11 additions and 0 deletions
|
@ -11,4 +11,15 @@
|
||||||
registrationConfigFile = "/run/gitlab-runner.env";
|
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;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue