From c78b222dda6269de75381d5f9e6bdcc279f4af4e Mon Sep 17 00:00:00 2001 From: Quinn Unger Date: Wed, 23 Sep 2026 22:10:59 +0100 Subject: [PATCH] tsumugi/shelfarr: ensure container doesn't start until after netbird is up --- hosts/tsumugi/os/arr/shelfarr.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/hosts/tsumugi/os/arr/shelfarr.nix b/hosts/tsumugi/os/arr/shelfarr.nix index 5fa86b2..cf93efe 100644 --- a/hosts/tsumugi/os/arr/shelfarr.nix +++ b/hosts/tsumugi/os/arr/shelfarr.nix @@ -7,7 +7,7 @@ }: let cfg = config.virtualisation.oci-containers.containers; - version = "2026.09.10.1"; + version = "2026.09.18.1"; ip = "100.109.197.202"; mountRoot = "/mnt/media/data"; libationBooksPath = "/mnt/media/data/appdata/libation/books"; @@ -25,10 +25,18 @@ in }; }; systemd = { - services.shelfarr.after = [ - "mnt-media.mount" - "netbird-sidonia.service" - ]; + services.shelfarr = { + after = [ + "mnt-media.mount" + "netbird-sidonia.service" + # ''sys-devices-virtual-net-nb\x2dsidonia.device'' + ]; + # Don't start the service until after the netbird interface is up + bindsTo = [ + "netbird-sidonia.service" + # ''sys-devices-virtual-net-nb\x2dsidonia.device'' + ]; + }; tmpfiles.rules = [ "d ${shelfarrState}/data 0700 shelfarr shelfarr -" "d ${libationState}/config 0700 shelfarr shelfarr -" -- 2.51.2