From 8c11c7460ac75bd939b71276dd8a8f5922fce9f4 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Mon, 18 Sep 2023 16:07:46 +0200 Subject: [PATCH] Delay the mount until the network is ready --- m/module/shared-nix-store.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/m/module/shared-nix-store.nix b/m/module/shared-nix-store.nix index cde993b..0b17fea 100644 --- a/m/module/shared-nix-store.nix +++ b/m/module/shared-nix-store.nix @@ -26,6 +26,10 @@ device = "overlay"; fsType = "overlay"; options = [ + # We need the local-fs.target to be ready, so the network interfaces can + # be configured to the network.target is reached. So make this a netdev + # mount. + "_netdev" "lowerdir=/mnt/hut-nix-store,upperdir=/nix/store,workdir=/mnt/nix-work" "x-systemd.requires-mounts-for=/nix/store" # We need to wait for the NFS mount