Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
26 lines
571 B
Nix
26 lines
571 B
Nix
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "gonic";
|
|
|
|
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";
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
machine.wait_for_unit("gonic")
|
|
machine.wait_for_open_port(4747)
|
|
'';
|
|
})
|