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