From ec564c681462fce50a7b214b58beba7a811ce15a Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Mon, 20 Apr 2026 16:34:51 +0200 Subject: [PATCH] Manage Syncthing with turnstile service --- ansible/inventory/group_vars/void.yml | 1 + dotfiles/desktop/.config/service/syncthing/log/run | 3 +++ dotfiles/desktop/.config/service/syncthing/run | 9 +++++++++ 3 files changed, 13 insertions(+) create mode 100755 dotfiles/desktop/.config/service/syncthing/log/run create mode 100755 dotfiles/desktop/.config/service/syncthing/run diff --git a/ansible/inventory/group_vars/void.yml b/ansible/inventory/group_vars/void.yml index 26c679b..8665647 100644 --- a/ansible/inventory/group_vars/void.yml +++ b/ansible/inventory/group_vars/void.yml @@ -35,6 +35,7 @@ void_packages_base: - seahorse - socklog - socklog-void + - syncthing - tmux - tealdeer - tree-sitter-grammars diff --git a/dotfiles/desktop/.config/service/syncthing/log/run b/dotfiles/desktop/.config/service/syncthing/log/run new file mode 100755 index 0000000..d8c1052 --- /dev/null +++ b/dotfiles/desktop/.config/service/syncthing/log/run @@ -0,0 +1,3 @@ +#!/bin/sh + +exec svlogd -tt ./main diff --git a/dotfiles/desktop/.config/service/syncthing/run b/dotfiles/desktop/.config/service/syncthing/run new file mode 100755 index 0000000..ad121a2 --- /dev/null +++ b/dotfiles/desktop/.config/service/syncthing/run @@ -0,0 +1,9 @@ +#!/bin/sh + +set -eu + +if [ -n "${TURNSTILE_ENV_DIR:-}" ]; then + exec chpst -e "$TURNSTILE_ENV_DIR" syncthing serve --no-browser --logfile=default +fi + +exec syncthing serve --no-browser --logfile=default