From dce701146c708c9c07c0efd5e4fd547bf7f717a9 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sun, 28 Jan 2024 00:57:45 +0800 Subject: [PATCH] fix: _netdev - mount after the network is available --- hosts/idols_ai/cifs-mount.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hosts/idols_ai/cifs-mount.nix b/hosts/idols_ai/cifs-mount.nix index 031dbf2d..b94485e9 100644 --- a/hosts/idols_ai/cifs-mount.nix +++ b/hosts/idols_ai/cifs-mount.nix @@ -8,7 +8,10 @@ device = "//192.168.5.194/Downloads"; fsType = "cifs"; options = [ - "vers=3.0,uid=1000,gid=100,dir_mode=0755,file_mode=0755,mfsymlinks,credentials=${config.age.secrets.smb-credentials.path},nofail" + # https://www.freedesktop.org/software/systemd/man/latest/systemd.mount.html + "nofail,_netdev,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s" + "uid=1000,gid=100,dir_mode=0755,file_mode=0755" + "vers=3.0,credentials=${config.age.secrets.smb-credentials.path}" ]; depends = ["/persistent" "/boot" "/swap/swapfile"]; };