From a8cdfd30ff3560b718205e81fbdada266b94186f Mon Sep 17 00:00:00 2001 From: Mark Karpov Date: Wed, 15 Jan 2020 17:16:44 +0100 Subject: [PATCH] Make buildkite agent service compatible with buildkite-agent3 --- .../services/continuous-integration/buildkite-agent.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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" <