Skip to content

Commit

Permalink
use mkIf
Browse files Browse the repository at this point in the history
  • Loading branch information
erikarvstedt committed Apr 8, 2020
1 parent 85e52a0 commit 89d3d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/presets/secure-node.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ in {
enable = true;
client.enable = true;
# LND uses ControlPort to create onion services
controlPort = if config.services.lnd.enable then 9051 else null;
controlPort = mkIf config.services.lnd.enable 9051;

hiddenServices.sshd = {
map = [ { port = 22; } ];
Expand Down

0 comments on commit 89d3d58

Please sign in to comment.