0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

treewide: use optional instead of 'then []'

This commit is contained in:
Felix Buehler 2023-06-25 11:47:43 +02:00 committed by Anderson Torres
parent 175e9d1f00
commit 933a41a73f
17 changed files with 45 additions and 65 deletions

View file

@ -528,7 +528,7 @@ in
};
networking.firewall.allowedTCPPorts = if cfg.openFirewall then cfg.ports else [];
networking.firewall.allowedTCPPorts = optionals cfg.openFirewall cfg.ports;
security.pam.services.sshd =
{ startSession = true;