diff --git a/modules/resilio.nix b/modules/resilio.nix index c424358..5042335 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.unitConfig.RequiresMountsFor = builtins.map (folder: "${config.services.resilio.directoryRoot}/${folder.name}") cfg.folders; }; }