nixpkgs/nixos/tests/gonic.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
582 B
Nix
Raw Permalink Normal View History

{ pkgs, ... }:
{
name = "gonic";
2022-12-21 01:08:48 +01:00
nodes.machine =
{ ... }:
{
systemd.tmpfiles.settings = {
"10-gonic" = {
"/tmp/music"."d" = { };
"/tmp/podcast"."d" = { };
"/tmp/playlists"."d" = { };
};
};
services.gonic = {
enable = true;
settings = {
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)
'';
}