summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/desktop/desktop.md2
-rw-r--r--docs/desktop/syncthing.md16
2 files changed, 18 insertions, 0 deletions
diff --git a/docs/desktop/desktop.md b/docs/desktop/desktop.md
index 39cebeb..efd86b0 100644
--- a/docs/desktop/desktop.md
+++ b/docs/desktop/desktop.md
@@ -3,3 +3,5 @@
This page describes several useful tips and configurations that I've used.
[Thunderbird](thunderbird.md)
+
+[Syncthing on Artix](syncthing.md)
diff --git a/docs/desktop/syncthing.md b/docs/desktop/syncthing.md
new file mode 100644
index 0000000..aabcd79
--- /dev/null
+++ b/docs/desktop/syncthing.md
@@ -0,0 +1,16 @@
+# Syncthing using Runit and Artix Linux
+
+The default Artix Linux syncthing script is broken, here is a corrected version that works:
+
+ #!/bin/sh
+ export USER="joshua"
+ export HOME="/home/joshua"
+
+ groups="$(id -Gn "$USER" | tr ' ' ':')"
+
+ exec 2>&1
+ exec chpst -u "$USER:groups" syncthing -logflags 0
+
+References:
+
+[Void Linux Per User Services](https://docs.voidlinux.org/config/services/user-services.html)