From 1cff38be432c8efe9c8be9469aabe7a2798359b3 Mon Sep 17 00:00:00 2001 From: beatzaplenty Date: Mon, 13 Jul 2026 12:12:58 +1000 Subject: [PATCH] add docker backup share --- modules/raspi/mount-data.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/modules/raspi/mount-data.nix b/modules/raspi/mount-data.nix index 0461c53..a4944ad 100644 --- a/modules/raspi/mount-data.nix +++ b/modules/raspi/mount-data.nix @@ -22,4 +22,26 @@ fileSystems."/mnt/raspi" = { "nfsvers=4.2" ]; }; + +fileSystems."/mnt/raspi-backup" = { + device = "raspberrypi.tail13f623.ts.net:/home/raspi/docker-data"; + 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" + ]; +}; } \ No newline at end of file