1
0
Fork 0

podman: Remove some manual depends

This commit is contained in:
Daniel Kempkens 2023-05-27 12:49:12 +02:00
parent 0dd9829beb
commit 9bdf5ac8d3
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
2 changed files with 4 additions and 17 deletions

View file

@ -38,23 +38,15 @@
}; };
systemd.services.podman-autobrr = systemd.services.podman-autobrr =
let
depends = [ "podman-sonarr.service" "podman-radarr.service" ];
in
{ {
requires = lib.mkAfter depends;
bindsTo = [ "wg.service" ]; bindsTo = [ "wg.service" ];
after = lib.mkForce ([ "wg.service" ] ++ depends); after = lib.mkForce [ "wg.service" ];
}; };
systemd.services.podman-omegabrr = systemd.services.podman-omegabrr =
let
depends = [ "podman-autobrr.service" ];
in
{ {
requires = lib.mkAfter depends;
bindsTo = [ "wg.service" ]; bindsTo = [ "wg.service" ];
after = lib.mkForce ([ "wg.service" ] ++ depends); after = lib.mkForce [ "wg.service" ];
}; };
services.nginx.virtualHosts."autobrr.internal.kempkens.network" = { services.nginx.virtualHosts."autobrr.internal.kempkens.network" = {

View file

@ -27,16 +27,11 @@
"mnt-media-Movies.mount" "mnt-media-Movies.mount"
"mnt-downloads.mount" "mnt-downloads.mount"
]; ];
depends = [
"podman-sabnzbd.service"
"podman-qbittorrent.service"
];
in in
{ {
requires = lib.mkAfter (mounts ++ depends); requires = lib.mkAfter mounts;
bindsTo = [ "wg.service" ]; bindsTo = [ "wg.service" ];
after = lib.mkForce ([ "wg.service" ] ++ mounts ++ depends); after = lib.mkForce ([ "wg.service" ] ++ mounts);
}; };
services.nginx.virtualHosts."radarr.internal.kempkens.network" = { services.nginx.virtualHosts."radarr.internal.kempkens.network" = {