From 89d3d58850cae43279828cf9b717e24d1abaff84 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Tue, 7 Apr 2020 22:47:36 +0200 Subject: [PATCH] use mkIf --- modules/presets/secure-node.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/presets/secure-node.nix b/modules/presets/secure-node.nix index ff1d9be..13aa57d 100644 --- a/modules/presets/secure-node.nix +++ b/modules/presets/secure-node.nix @@ -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; } ];