From e35c18c39eaaac727d0b3158f84cf4800c0515be Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 23 Aug 2023 17:02:33 +0200 Subject: [PATCH] modules/ipfs-cluster: use strictMounts --- modules/ipfs-cluster/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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" ];