diff --git a/modules/ipfs-cluster/default.nix b/modules/ipfs-cluster/default.nix index ed1b8c6..790354a 100644 --- a/modules/ipfs-cluster/default.nix +++ b/modules/ipfs-cluster/default.nix @@ -121,7 +121,7 @@ in { environment.IPFS_CLUSTER_PATH = cfg.dataDir; wantedBy = [ "default.target" ]; - unitConfig.RequiresMountsFor = cfg.dataDir; + strictMounts = [ cfg.dataDir ]; serviceConfig = { # "" clears exec list (man systemd.service -> execStart) @@ -143,6 +143,8 @@ in { environment.IPFS_CLUSTER_PATH = cfg.dataDir; wantedBy = [ "multi-user.target" ]; + strictMounts = [ cfg.dataDir ]; + wants = [ "ipfs-cluster-init.service" ]; after = [ "ipfs-cluster-init.service" ];