nixosTests.gonic: set up all necessary paths using tmpfiles

This commit is contained in:
Michal Koutenský 2024-03-28 14:45:02 +01:00
parent 759812cc34
commit f7c740853d

View file

@ -2,11 +2,19 @@ import ./make-test-python.nix ({ pkgs, ... }: {
name = "gonic"; name = "gonic";
nodes.machine = { ... }: { nodes.machine = { ... }: {
systemd.tmpfiles.settings = {
"10-gonic" = {
"/tmp/music"."d" = {};
"/tmp/podcast"."d" = {};
"/tmp/playlists"."d" = {};
};
};
services.gonic = { services.gonic = {
enable = true; enable = true;
settings = { settings = {
music-path = [ "/tmp" ]; music-path = [ "/tmp/music" ];
podcast-path = "/tmp"; podcast-path = "/tmp/podcast";
playlists-path = "/tmp/playlists";
}; };
}; };
}; };