2022-12-21 01:08:48 +01:00
|
|
|
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
|
|
name = "gonic";
|
|
|
|
|
|
|
|
nodes.machine = { ... }: {
|
2024-03-28 14:45:02 +01:00
|
|
|
systemd.tmpfiles.settings = {
|
|
|
|
"10-gonic" = {
|
|
|
|
"/tmp/music"."d" = {};
|
|
|
|
"/tmp/podcast"."d" = {};
|
|
|
|
"/tmp/playlists"."d" = {};
|
|
|
|
};
|
|
|
|
};
|
2022-12-21 01:08:48 +01:00
|
|
|
services.gonic = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
2024-03-28 14:45:02 +01:00
|
|
|
music-path = [ "/tmp/music" ];
|
|
|
|
podcast-path = "/tmp/podcast";
|
|
|
|
playlists-path = "/tmp/playlists";
|
2022-12-21 01:08:48 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
machine.wait_for_unit("gonic")
|
|
|
|
machine.wait_for_open_port(4747)
|
|
|
|
'';
|
|
|
|
})
|