about summary refs log tree commit diff
path: root/bundles
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2026-02-23 14:29:17 +0100
committerRobert Günzler <r@gnzler.io>2026-02-23 14:29:17 +0100
commitc0e6dae40275273b7bc77004f5e45a2f904e49ac (patch)
treeca16a940d8f3cae8a5a485c8a2e29d420834b34b /bundles
parenta01a1f4a3b6f839a5dee11a8abe172179c976194 (diff)
nfs: *
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'bundles')
-rw-r--r--bundles/nfs/files/exports1
-rw-r--r--bundles/nfs/files/fstab1
-rw-r--r--bundles/nfs/files/public.avahi.service20
-rw-r--r--bundles/nfs/items.py3
4 files changed, 25 insertions, 0 deletions
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 @@
+<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
+<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
+
+<service-group>
+
+  <name replace-wildcards="yes">Public NFS share on %h</name>
+
+  <service>
+    <type>_device-info._tcp</type>
+    <port>0</port>
+    <txt-record>model=Xserve</txt-record>
+  </service>
+
+  <service>
+    <type>_nfs._tcp</type>
+    <port>2049</port>
+    <txt-record>path=/var/nfs/public</txt-record>
+  </service>
+
+</service-group>
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: