at master 867 B view raw
1{ pkgs, ... }: 2{ 3 name = "wasabibackend"; 4 meta = with pkgs.lib.maintainers; { 5 maintainers = [ mmahut ]; 6 }; 7 8 nodes = { 9 machine = 10 { ... }: 11 { 12 services.wasabibackend = { 13 enable = true; 14 network = "testnet"; 15 rpc = { 16 user = "alice"; 17 port = 18332; 18 }; 19 }; 20 services.bitcoind."testnet" = { 21 enable = true; 22 testnet = true; 23 rpc.users = { 24 alice.passwordHMAC = "e7096bc21da60b29ecdbfcdb2c3acc62$f948e61cb587c399358ed99c6ed245a41460b4bf75125d8330c9f6fcc13d7ae7"; 25 }; 26 }; 27 }; 28 }; 29 30 testScript = '' 31 start_all() 32 machine.wait_for_unit("wasabibackend.service") 33 machine.wait_until_succeeds( 34 "grep 'Wasabi Backend started' /var/lib/wasabibackend/.walletwasabi/backend/Logs.txt" 35 ) 36 ''; 37}