feat: WIP s6-overlay and friends

This commit is contained in:
DatCaptainHorse
2026-02-19 18:02:10 +02:00
parent b743dab332
commit 34afd371ad
96 changed files with 2340 additions and 1063 deletions

View File

@@ -0,0 +1 @@
3

View File

@@ -0,0 +1,26 @@
#!/command/with-contenv bash
set -euo pipefail
if [[ -f /etc/nestri/common.sh ]]; then
source /etc/nestri/common.sh
else
exit 1
fi
# remove possibly stale socket
rm -rf "${NESTRI_XDG_RUNTIME_DIR}/pulse"
s6-setuidgid ${NESTRI_USER} pipewire-pulse &
PROCESS_PID=$!
# wait for socket
while ! test -S "${NESTRI_XDG_RUNTIME_DIR}/pulse/native"; do
sleep 0.5
done
# notify
printf 'ready\n' >&3
# wait till process exits
wait "${PROCESS_PID}"

View File

@@ -0,0 +1 @@
longrun