From 8e2eb0ac5455263d1e75f822b399cc8652acb4a4 Mon Sep 17 00:00:00 2001 From: Quinn Unger Date: Sat, 22 Aug 2026 00:01:33 +0100 Subject: [PATCH] make sure services wait for mounts --- hosts/tsumugi/arr/default.nix | 7 +++++++ hosts/tsumugi/immich.nix | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/hosts/tsumugi/arr/default.nix b/hosts/tsumugi/arr/default.nix index b2d497d..6caae7c 100644 --- a/hosts/tsumugi/arr/default.nix +++ b/hosts/tsumugi/arr/default.nix @@ -99,6 +99,13 @@ }; }; }; + systemd.services = { + bandcampsync.after = [ "mnt-media.mount" ]; + jellyfin.after = [ "mnt-media.mount" ]; + radarr.after = [ "mnt-media.mount" ]; + sonarr.after = [ "mnt-media.mount" ]; + plex.after = [ "mnt-media.mount" ]; + }; services.autobrr = { enable = true; diff --git a/hosts/tsumugi/immich.nix b/hosts/tsumugi/immich.nix index 903090d..225dd90 100644 --- a/hosts/tsumugi/immich.nix +++ b/hosts/tsumugi/immich.nix @@ -29,6 +29,9 @@ lib.mkMerge [ "video" "render" ]; - systemd.services.immich-machine-learning.serviceConfig.PrivateDevices = lib.mkForce true; # Force CPU + systemd.services = { + immich-machine-learning.serviceConfig.PrivateDevices = lib.mkForce true; # Force CPU + immich-server.after = [ "mnt-clientmedia.mount" ]; + }; } ] -- 2.54.0