use mkIf
This commit is contained in:
parent
85e52a06cb
commit
89d3d58850
@ -27,7 +27,7 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
client.enable = true;
|
client.enable = true;
|
||||||
# LND uses ControlPort to create onion services
|
# 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 = {
|
hiddenServices.sshd = {
|
||||||
map = [ { port = 22; } ];
|
map = [ { port = 22; } ];
|
||||||
|
Loading…
Reference in New Issue
Block a user