nixos/acme: add extraLegoRenewFlags option
This commit is contained in:
parent
b522aeda5a
commit
ffb7b984b2
@ -149,6 +149,14 @@ let
|
|||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraLegoRenewFlags = mkOption {
|
||||||
|
type = types.listOf types.str;
|
||||||
|
default = [];
|
||||||
|
description = ''
|
||||||
|
Additional flags to pass to lego renew.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -305,7 +313,7 @@ in
|
|||||||
runOpts = escapeShellArgs (globalOpts ++ [ "run" ] ++ certOpts);
|
runOpts = escapeShellArgs (globalOpts ++ [ "run" ] ++ certOpts);
|
||||||
renewOpts = escapeShellArgs (globalOpts ++
|
renewOpts = escapeShellArgs (globalOpts ++
|
||||||
[ "renew" "--days" (toString cfg.validMinDays) ] ++
|
[ "renew" "--days" (toString cfg.validMinDays) ] ++
|
||||||
certOpts);
|
certOpts ++ data.extraLegoRenewFlags);
|
||||||
acmeService = {
|
acmeService = {
|
||||||
description = "Renew ACME Certificate for ${cert}";
|
description = "Renew ACME Certificate for ${cert}";
|
||||||
after = [ "network.target" "network-online.target" ];
|
after = [ "network.target" "network-online.target" ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user