improve nodeinfo

- enable usage outside of secure-node.nix
- use json as the output format
- show ports
- also show local addresses, which is particularly useful when
  netns-isolation is enabled
- only show enabled services
This commit is contained in:
Erik Arvstedt
2021-01-14 13:24:26 +01:00
parent f6b883a9ac
commit 323a431aba
7 changed files with 126 additions and 67 deletions

View File

@@ -14,7 +14,6 @@ let
in {
imports = [
../modules.nix
../nodeinfo.nix
./enable-tor.nix
];
@@ -75,5 +74,7 @@ in {
cp "${config.users.users.root.home}/.vbox-nixops-client-key" "${config.users.users.${operatorName}.home}"
'';
};
nix-bitcoin.nodeinfo.enable = true;
};
}