runit: configure services with turnstile

enable dbus (user-session), pipewire, pipewire-pulse, syncthing
This commit is contained in:
fanyx 2025-03-16 16:02:48 +01:00
parent 2ed57158c1
commit 07786e22f9
Signed by: fanyx
SSH key fingerprint: SHA256:Gwc2cuQkLEIzOapSR+R8raHvC1bSAkPsYuPqlPoFlD8
5 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,11 @@
#!/bin/sh
[ -r ./conf ] && . ./conf
: "${DBUS_SESSION_BUS_ADDRESS:=unix:path=/run/user/$(id -u)/bus}"
if [ -d "$TURNSTILE_ENV_DIR" ]; then
echo "$DBUS_SESSION_BUS_ADDRESS" > "$TURNSTILE_ENV_DIR"/DBUS_SESSION_BUS_ADDRESS
fi
exec chpst -e "$TURNSTILE_ENV_DIR" dbus-daemon --session --nofork --nopidfile --address="$DBUS_SESSION_BUS_ADDRESS" $OPTS

View file

@ -0,0 +1,3 @@
#!/bin/sh
exec 2>&1
exec pipewire-pulse

View file

@ -0,0 +1,3 @@
#!/bin/sh
exec 2>&1
exec pipewire

View file

@ -0,0 +1,5 @@
#!/bin/sh
exec 2>&1
exec /usr/bin/syncthing --logflags 0 --no-restart --home="$HOME/.config/syncthing"

View file

@ -0,0 +1,6 @@
core_services="
dbus
syncthing
pipewire
pipewire-pulse
"