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:
parent
175e9d1f00
commit
933a41a73f
17 changed files with 45 additions and 65 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue