forked from lix-project/hydra
Merge pull request #160 from thoughtpolice/extraEnv
hydra-module: add config.extraEnv
This commit is contained in:
commit
14ccf84e46
|
@ -19,7 +19,7 @@ let
|
||||||
{ NIX_REMOTE = "daemon";
|
{ NIX_REMOTE = "daemon";
|
||||||
OPENSSL_X509_CERT_FILE = "/etc/ssl/certs/ca-bundle.crt";
|
OPENSSL_X509_CERT_FILE = "/etc/ssl/certs/ca-bundle.crt";
|
||||||
GIT_SSL_CAINFO = "/etc/ssl/certs/ca-bundle.crt";
|
GIT_SSL_CAINFO = "/etc/ssl/certs/ca-bundle.crt";
|
||||||
} // hydraEnv;
|
} // hydraEnv // cfg.extraEnv;
|
||||||
|
|
||||||
serverEnv = env //
|
serverEnv = env //
|
||||||
{ HYDRA_TRACKER = cfg.tracker;
|
{ HYDRA_TRACKER = cfg.tracker;
|
||||||
|
@ -130,6 +130,11 @@ in
|
||||||
description = "Extra lines for the hydra config";
|
description = "Extra lines for the hydra config";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraEnv = mkOption {
|
||||||
|
type = types.attrsOf types.str;
|
||||||
|
default = {};
|
||||||
|
description = "Extra environment variables for Hydra";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue