diff --git a/machines/perception/configuration.nix b/machines/perception/configuration.nix index a345cc8..53e368d 100644 --- a/machines/perception/configuration.nix +++ b/machines/perception/configuration.nix @@ -99,6 +99,7 @@ }; ports = [ "8181:8181" ]; volumes = [ "/var/lib/tautulli:/config" ]; + dependsOn = [ "plex" ]; }; # Configure sabnzbd "sabnzbd" = { @@ -129,6 +130,7 @@ "/mnt/plex:/media" "/mnt/scratch/sabnzbd/download-complete:/downloads" ]; + dependsOn = [ "sabnzbd" "plex" ]; }; # Configure radarr "radarr" = { @@ -144,6 +146,12 @@ "/mnt/plex:/media" "/mnt/scratch/sabnzbd/download-complete:/downloads" ]; + dependsOn = [ "sabnzbd" "plex" ]; }; }; + # Make the containers depend on their mounts + systemd.services = { + "podman-plex" = { requires = [ "mnt-plex.mount" ]; }; + "podman-sabnzbd" = { requires = [ "mnt-scratch.mount" ]; }; + }; }