python312Packages.millheater: 0.11.8 -> 0.12.0
[NixPkgs.git] / nixos / tests / gonic.nix
blobadf0f511a9cf7e9ebade992788ef14a856fd061b
1 import ./make-test-python.nix ({ pkgs, ... }: {
2   name = "gonic";
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   };
22   testScript = ''
23     machine.wait_for_unit("gonic")
24     machine.wait_for_open_port(4747)
25   '';