nixos/gitlab-runner: add missing HOME to environment (#67450)

Gitlab runner fails to start if HOME is not set.
This commit is contained in:
Pascal Bach 2019-08-28 22:27:28 +02:00 committed by zimbatm
parent b602b5c067
commit 02ed974bba

View File

@ -111,7 +111,10 @@ in
config = mkIf cfg.enable {
systemd.services.gitlab-runner = {
path = cfg.packages;
environment = config.networking.proxy.envVars;
environment = config.networking.proxy.envVars // {
# Gitlab runner will not start if the HOME variable is not set
HOME = cfg.workDir;
};
description = "Gitlab Runner";
after = [ "network.target" ]
++ optional hasDocker "docker.service";