modularized raspi mount

This commit is contained in:
2026-07-13 01:12:43 +10:00
parent 1f2dc03486
commit 9f59ed4426
2 changed files with 45 additions and 41 deletions
+25
View File
@@ -0,0 +1,25 @@
{ ... }:
{
fileSystems."/mnt/raspi" = {
device = "raspberrypi.tail13f623.ts.net:/home/raspi/raspi";
fsType = "nfs4";
options = [
"nofail"
"_netdev"
"noatime"
# Don't mount until first access
"x-systemd.automount"
# Unmount after 10 min idle
"x-systemd.idle-timeout=600"
# Give the Pi/Tailscale a little time to appear
"x-systemd.device-timeout=10s"
# Explicitly use NFSv4.2 if supported
"nfsvers=4.2"
];
};
}