diff --git a/nixos/modules/services/continuous-integration/buildkite-agent.nix b/nixos/modules/services/continuous-integration/buildkite-agent.nix index 32f361454bc1..e996680bedaf 100644 --- a/nixos/modules/services/continuous-integration/buildkite-agent.nix +++ b/nixos/modules/services/continuous-integration/buildkite-agent.nix @@ -210,6 +210,9 @@ in ## don't end up in the Nix store. preStart = let sshDir = "${cfg.dataDir}/.ssh"; + metaData = if cfg.meta-data == "" + then "" + else "meta-data=${cfg.meta-data}"; in '' mkdir -m 0700 -p "${sshDir}" @@ -220,7 +223,7 @@ in cat > "${cfg.dataDir}/buildkite-agent.cfg" <