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