From 0fb20534dbba0870c67f413c572014f25ee344fc Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Sat, 14 Sep 2024 02:27:37 +0100 Subject: [PATCH] resilio: require mounts be available Without this resilio fails on boot on tywin.storage where the paths are on a ZFS array which gets mounted reliably later than the resilio service attempts to start. --- modules/resilio.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/resilio.nix b/modules/resilio.nix index c424358..f2e91e3 100644 --- a/modules/resilio.nix +++ b/modules/resilio.nix @@ -61,5 +61,7 @@ in in builtins.map (folder: mkFolder folder.name folder.secret) cfg.folders; }; + + systemd.services.resilio.RequiresMountsFor = builtins.map (folder: "${config.services.resilio.directoryRoot}/${folder.name}") cfg.folders; }; }