at 25.11-pre 670 B view raw
1import ./make-test-python.nix ( 2 { pkgs, ... }: 3 { 4 name = "gonic"; 5 6 nodes.machine = 7 { ... }: 8 { 9 systemd.tmpfiles.settings = { 10 "10-gonic" = { 11 "/tmp/music"."d" = { }; 12 "/tmp/podcast"."d" = { }; 13 "/tmp/playlists"."d" = { }; 14 }; 15 }; 16 services.gonic = { 17 enable = true; 18 settings = { 19 music-path = [ "/tmp/music" ]; 20 podcast-path = "/tmp/podcast"; 21 playlists-path = "/tmp/playlists"; 22 }; 23 }; 24 }; 25 26 testScript = '' 27 machine.wait_for_unit("gonic") 28 machine.wait_for_open_port(4747) 29 ''; 30 } 31)