Fix auto-mounting NFS

Since my NFS mounts are connecting across tailscale, we need to force
them to wait for the tailscaled to be connected already
This commit is contained in:
Greg Hellings
2025-10-26 22:19:27 -05:00
parent 4e5320847b
commit 90df912f1a
+16 -16
View File
@@ -27,27 +27,27 @@
glxinfo glxinfo
jellyfin-ffmpeg jellyfin-ffmpeg
libva-utils libva-utils
nfs-utils
radeontop radeontop
vulkan-tools vulkan-tools
]; ];
fileSystems = { systemd.mounts = let
"/music" = { nfs = name: {
device = "nas1.shire-zebra.ts.net:/mnt/all/music"; what = "nas1.shire-zebra.ts.net:/mnt/all/${name}";
fsType = "nfs"; type = "nfs";
options = [ "ro" ]; name = "${name}.mount";
where = "/${name}";
requires = [ "tailscaled-autoconnect.service" ];
after = [ "tailscaled-autoconnect.service" ];
wantedBy = [ "multi-user.target" ];
mountConfig.Options = "_netdev,noexec,ro,timeo=50,retrans=5,soft";
}; };
"/photo" = { in [
device = "nas1.shire-zebra.ts.net:/mnt/all/photos"; (nfs "music")
fsType = "nfs"; (nfs "photos")
options = [ "ro" ]; (nfs "video")
}; ];
"/video" = {
device = "nas1.shire-zebra.ts.net:/mnt/all/video/";
fsType = "nfs";
options = [ "ro" ];
};
};
hardware = { hardware = {
enableAllFirmware = true; enableAllFirmware = true;