From c0e6dae40275273b7bc77004f5e45a2f904e49ac Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 23 Feb 2026 14:29:17 +0100 Subject: nfs: * MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- bundles/nfs/files/exports | 1 + bundles/nfs/files/fstab | 1 + bundles/nfs/files/public.avahi.service | 20 ++++++++++++++++++++ bundles/nfs/items.py | 3 +++ 4 files changed, 25 insertions(+) create mode 100644 bundles/nfs/files/public.avahi.service (limited to 'bundles/nfs') diff --git a/bundles/nfs/files/exports b/bundles/nfs/files/exports index faa7da1..8cb0369 100644 --- a/bundles/nfs/files/exports +++ b/bundles/nfs/files/exports @@ -3,3 +3,4 @@ /var/nfs/home-robert *(rw,sync,insecure,all_squash,no_subtree_check,hide) /var/nfs/media *(rw,sync,insecure,no_root_squash,no_subtree_check,nohide) /var/nfs/public *(ro,sync,insecure,all_squash,no_subtree_check,hide) +/var/nfs/syncthing *(ro,sync,insecure,all_squash,no_subtree_check,hide) diff --git a/bundles/nfs/files/fstab b/bundles/nfs/files/fstab index 0da4f54..dd80b27 100644 --- a/bundles/nfs/files/fstab +++ b/bundles/nfs/files/fstab @@ -15,3 +15,4 @@ UUID=5699-A10B /media/usb exfat defaults,uid=1000,gid=1000 0 0 # nfs shares /media/hayasui/media /var/nfs/media none rbind 0 0 /media/bigdump /var/nfs/bigdump none rbind 0 0 +/var/lib/syncthing /var/nfs/syncthing none rbind 0 0 diff --git a/bundles/nfs/files/public.avahi.service b/bundles/nfs/files/public.avahi.service new file mode 100644 index 0000000..c1d0cc3 --- /dev/null +++ b/bundles/nfs/files/public.avahi.service @@ -0,0 +1,20 @@ + + + + + + Public NFS share on %h + + + _device-info._tcp + 0 + model=Xserve + + + + _nfs._tcp + 2049 + path=/var/nfs/public + + + diff --git a/bundles/nfs/items.py b/bundles/nfs/items.py index 369dad6..b15111c 100644 --- a/bundles/nfs/items.py +++ b/bundles/nfs/items.py @@ -33,6 +33,9 @@ files = { # "source": "nfs.nft", # "triggers": {"svc_openrc:nftables:restart"}, # } + "/etc/avahi/services/nfs-public.service": { + "source": "public.avahi.service", + }, } # TODO: -- cgit 1.4.1