add LAN prefer to nfs

This commit is contained in:
Yan Lin 2025-10-25 15:35:16 +02:00
parent 73b137dc84
commit 475ab0df9b
4 changed files with 25 additions and 11 deletions

View file

@ -321,7 +321,8 @@
# AutoFS auto-mounting for remote NFS shares
services.autofs-custom = {
enable = true;
remoteHost = "10.2.2.20";
remoteHost = "lan.hs.yanlincs.com"; # Prefer LAN when at home
replicas = [ "10.2.2.20" ]; # Fallback to WireGuard when remote
remotePath = "/mnt/storage/Media";
mountPoint = "/mnt/hs-media";
};