summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorJ. Konrad Tegtmeier-Rottach <jktr@0x16.de>2020-06-08 02:18:31 +0200
committerJ. Konrad Tegtmeier-Rottach <jktr@0x16.de>2020-06-08 02:18:31 +0200
commit1719353619662f5fed705cc10f54834edb01bb38 (patch)
tree0566ccfa1f5d24ff611d67ced89c892c2dbeacf9 /nixos/modules
parenta0189a4c495da3c7945c42b56c5dae501206c268 (diff)
downloadnixpkgs-1719353619662f5fed705cc10f54834edb01bb38.tar
nixpkgs-1719353619662f5fed705cc10f54834edb01bb38.tar.gz
nixpkgs-1719353619662f5fed705cc10f54834edb01bb38.tar.bz2
nixpkgs-1719353619662f5fed705cc10f54834edb01bb38.tar.lz
nixpkgs-1719353619662f5fed705cc10f54834edb01bb38.tar.xz
nixpkgs-1719353619662f5fed705cc10f54834edb01bb38.tar.zst
nixpkgs-1719353619662f5fed705cc10f54834edb01bb38.zip
nixos/acme: add extraLegoRunFlags option
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/security/acme.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/nixos/modules/security/acme.nix b/nixos/modules/security/acme.nix
index 7b492a67b28..6c26e39524c 100644
--- a/nixos/modules/security/acme.nix
+++ b/nixos/modules/security/acme.nix
@@ -165,6 +165,14 @@ let
           Additional flags to pass to lego renew.
         '';
       };
+
+      extraLegoRunFlags = mkOption {
+        type = types.listOf types.str;
+        default = [];
+        description = ''
+          Additional flags to pass to lego run.
+        '';
+      };
     };
   };
 
@@ -319,7 +327,7 @@ in
                           ++ optionals (cfg.server != null || data.server != null) ["--server" (if data.server == null then cfg.server else data.server)]
                           ++ data.extraLegoFlags;
                 certOpts = optionals data.ocspMustStaple [ "--must-staple" ];
-                runOpts = escapeShellArgs (globalOpts ++ [ "run" ] ++ certOpts);
+                runOpts = escapeShellArgs (globalOpts ++ [ "run" ] ++ certOpts ++ data.extraLegoRunFlags);
                 renewOpts = escapeShellArgs (globalOpts ++
                   [ "renew" "--days" (toString cfg.validMinDays) ] ++
                   certOpts ++ data.extraLegoRenewFlags);