From efefba7c9b49a36a6c71b55f45c14d28e5f9f6bf Mon Sep 17 00:00:00 2001 From: Rodney Lorrimar Date: Sun, 18 Feb 2018 16:19:26 +0000 Subject: [PATCH] nixos/buildkite-agent: add extraConfig option This is useful for things like enabling debugging and increasing agent priority, which don't warrant extra module options. --- .../continuous-integration/buildkite-agent.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nixos/modules/services/continuous-integration/buildkite-agent.nix b/nixos/modules/services/continuous-integration/buildkite-agent.nix index 1b0198ac93fe..abd77ddb973e 100644 --- a/nixos/modules/services/continuous-integration/buildkite-agent.nix +++ b/nixos/modules/services/continuous-integration/buildkite-agent.nix @@ -65,6 +65,15 @@ in ''; }; + extraConfig = mkOption { + type = types.lines; + default = ""; + example = "debug=true"; + description = '' + Extra lines to be added verbatim to the configuration file. + ''; + }; + openssh = { privateKeyPath = mkOption { type = types.path; @@ -126,6 +135,7 @@ in build-path="${cfg.dataDir}/builds" hooks-path="${cfg.hooksPath}" bootstrap-script="${pkgs.buildkite-agent}/share/bootstrap.sh" + ${cfg.extraConfig} EOF '';