Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
Nix
12345678910111213141516171819202122232425262728293031323334353637{ lib, ... }:{ name = "pyload"; meta.maintainers = with lib.maintainers; [ ambroisie ];
nodes = { machine = { ... }: { services.pyload = { enable = true;
listenAddress = "0.0.0.0"; port = 9876; };
networking.firewall.allowedTCPPorts = [ 9876 ]; };
client = { }; };
testScript = '' start_all()
machine.wait_for_unit("pyload.service")
with subtest("Web interface accessible locally"): machine.wait_until_succeeds("curl -fs localhost:9876")
client.wait_for_unit("network.target")
with subtest("Web interface accessible from a different machine"): client.wait_until_succeeds("curl -fs machine:9876") '';}