nodeinfo: fix indentation

This commit is contained in:
Erik Arvstedt 2021-08-15 11:28:41 +02:00
parent 4ece606e8b
commit f9a0fd7a17
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -94,13 +94,13 @@ let
""") """)
''; '';
mkIfOnionPort = name: fn: mkIfOnionPort = name: fn:
if onionServices ? ${name} then if onionServices ? ${name} then
fn (toString (builtins.elemAt onionServices.${name}.map 0).port) fn (toString (builtins.elemAt onionServices.${name}.map 0).port)
else else
""; "";
inherit (config.services.tor.relay) onionServices; inherit (config.services.tor.relay) onionServices;
in { in {
options = { options = {
nix-bitcoin.nodeinfo = { nix-bitcoin.nodeinfo = {