mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2024-12-28 07:56:12 +01:00
mail-server/networking.nix: make use of use lib.optional
This commit is contained in:
parent
5047c2982f
commit
7b3e33c49c
1 changed files with 4 additions and 4 deletions
|
@ -24,10 +24,10 @@ in
|
|||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 25 587 ]
|
||||
++ (if enableImap then [ 143 ] else [])
|
||||
++ (if enableImapSsl then [ 993 ] else [])
|
||||
++ (if enablePop3 then [ 110 ] else [])
|
||||
++ (if enablePop3Ssl then [ 995 ] else []);
|
||||
++ lib.optional enableImap 143
|
||||
++ lib.optional enableImapSsl 993
|
||||
++ lib.optional enablePop3 110
|
||||
++ lib.optional enablePop3Ssl 995;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue