From b9853513941e22283b1438f74500d005fa4b0270 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Thu, 17 Aug 2023 02:50:57 +0000 Subject: [PATCH] cofractal-ams01: make bindMountSvc more stable --- ops/nixos/cofractal-ams01/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ops/nixos/cofractal-ams01/default.nix b/ops/nixos/cofractal-ams01/default.nix index 0cc5ec7f22..3521c6f35c 100644 --- a/ops/nixos/cofractal-ams01/default.nix +++ b/ops/nixos/cofractal-ams01/default.nix @@ -180,8 +180,9 @@ in where = dir; }; bindMountSvc = dir: svc: (bindMount' dir) // { - bindsTo = [svc]; - partOf = [svc]; + requiredBy = [svc]; + before = [svc]; + wantedBy = ["multi-user.target"]; }; bindMountSvcDynamic = dir: svc: (bindMount' "/var/lib/private/${dir}") // { requiredBy = [svc];