git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/acme: add extraLegoFlags option
commita0189a4c495da3c7945c42b56c5dae501206c268 authorJ. Konrad Tegtmeier-Rottach <jktr@0x16.de> dateMon 8 Jun 2020, 02:17 (6 years ago) parentd0abc5d
1 file changed+10−1
nixos/modules/security/acme.nix+10−1
nixos/modules/security/acme.nix+10−1
@@ -150,6 +150,14 @@ let
150150 '';
151151 };
152152
153+ extraLegoFlags = mkOption {
154+ type = types.listOf types.str;
155+ default = [];
156+ description = ''
157+ Additional global flags to pass to all lego commands.
158+ '';
159+ };
160+
153161 extraLegoRenewFlags = mkOption {
154162 type = types.listOf types.str;
155163 default = [];
@@ -308,7 +316,8 @@ in
308316 ++ optionals (data.dnsProvider != null && !data.dnsPropagationCheck) [ "--dns.disable-cp" ]
309317 ++ concatLists (mapAttrsToList (name: root: [ "-d" name ]) data.extraDomains)
310318 ++ (if data.dnsProvider != null then [ "--dns" data.dnsProvider ] else [ "--http" "--http.webroot" data.webroot ])
311− ++ optionals (cfg.server != null || data.server != null) ["--server" (if data.server == null then cfg.server else data.server)];
319+ ++ optionals (cfg.server != null || data.server != null) ["--server" (if data.server == null then cfg.server else data.server)]
320+ ++ data.extraLegoFlags;
312321 certOpts = optionals data.ocspMustStaple [ "--must-staple" ];
313322 runOpts = escapeShellArgs (globalOpts ++ [ "run" ] ++ certOpts);
314323 renewOpts = escapeShellArgs (globalOpts ++