mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 13:15:30 +03:00
treewide: use more lib.optionalString
This commit is contained in:
parent
b392d9b827
commit
327b0cff7a
41 changed files with 89 additions and 95 deletions
|
@ -1025,8 +1025,8 @@ in
|
|||
|
||||
services.postfix = lib.mkIf cfg.mail.incoming.enable {
|
||||
enable = true;
|
||||
sslCert = if cfg.sslCertificate != null then cfg.sslCertificate else "";
|
||||
sslKey = if cfg.sslCertificateKey != null then cfg.sslCertificateKey else "";
|
||||
sslCert = lib.optionalString (cfg.sslCertificate != null) cfg.sslCertificate;
|
||||
sslKey = lib.optionalString (cfg.sslCertificateKey != null) cfg.sslCertificateKey;
|
||||
|
||||
origin = cfg.hostname;
|
||||
relayDomains = [ cfg.hostname ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue