nixos/mycelium: add mycelium binary to systemPackages

It's now possible to invoke `mycelium {routes,peers} list`.
This commit is contained in:
Florian Klink 2024-06-08 15:01:32 +03:00
parent 9a4cd7ce4e
commit 6a3a382d5b
2 changed files with 5 additions and 0 deletions

View File

@ -60,6 +60,8 @@ in
networking.firewall.allowedTCPPorts = lib.optionals cfg.openFirewall [ 9651 ];
networking.firewall.allowedUDPPorts = lib.optionals cfg.openFirewall [ 9650 9651 ];
environment.systemPackages = [ cfg.package ];
systemd.services.mycelium = {
description = "Mycelium network";
after = [ "network.target" ];

View File

@ -51,6 +51,9 @@ in
peer1.wait_for_unit("mycelium.service")
peer2.wait_for_unit("mycelium.service")
peer1.succeed("mycelium peers list | grep 192.168.1.12")
peer2.succeed("mycelium peers list | grep 192.168.1.11")
peer1.succeed("ping -c5 ${peer2-ip}")
peer2.succeed("ping -c5 ${peer1-ip}")
'';