From 9bdf5ac8d3768c7acf7893b9b18943157da8a90c Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Sat, 27 May 2023 12:49:12 +0200 Subject: [PATCH] podman: Remove some manual depends --- system/nixos/autobrr.nix | 12 ++---------- system/nixos/radarr.nix | 9 ++------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/system/nixos/autobrr.nix b/system/nixos/autobrr.nix index dc649eb..be514e7 100644 --- a/system/nixos/autobrr.nix +++ b/system/nixos/autobrr.nix @@ -38,23 +38,15 @@ }; systemd.services.podman-autobrr = - let - depends = [ "podman-sonarr.service" "podman-radarr.service" ]; - in { - requires = lib.mkAfter depends; bindsTo = [ "wg.service" ]; - after = lib.mkForce ([ "wg.service" ] ++ depends); + after = lib.mkForce [ "wg.service" ]; }; systemd.services.podman-omegabrr = - let - depends = [ "podman-autobrr.service" ]; - in { - requires = lib.mkAfter depends; bindsTo = [ "wg.service" ]; - after = lib.mkForce ([ "wg.service" ] ++ depends); + after = lib.mkForce [ "wg.service" ]; }; services.nginx.virtualHosts."autobrr.internal.kempkens.network" = { diff --git a/system/nixos/radarr.nix b/system/nixos/radarr.nix index 20149af..4867b54 100644 --- a/system/nixos/radarr.nix +++ b/system/nixos/radarr.nix @@ -27,16 +27,11 @@ "mnt-media-Movies.mount" "mnt-downloads.mount" ]; - - depends = [ - "podman-sabnzbd.service" - "podman-qbittorrent.service" - ]; in { - requires = lib.mkAfter (mounts ++ depends); + requires = lib.mkAfter mounts; bindsTo = [ "wg.service" ]; - after = lib.mkForce ([ "wg.service" ] ++ mounts ++ depends); + after = lib.mkForce ([ "wg.service" ] ++ mounts); }; services.nginx.virtualHosts."radarr.internal.kempkens.network" = {