Commit f7c74085 authored by Michal Koutenský's avatar Michal Koutenský
Browse files

nixosTests.gonic: set up all necessary paths using tmpfiles

parent 759812cc
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -2,11 +2,19 @@ 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" ];
        podcast-path = "/tmp";
        music-path = [ "/tmp/music" ];
        podcast-path = "/tmp/podcast";
        playlists-path = "/tmp/playlists";
      };
    };
  };