flybrain/infra/units/pulse.service
acamilo 660c3cf00d
Some checks failed
ci / node 22 (test + typecheck) (push) Has been cancelled
ci / rust stable (cargo test --workspace --release) (push) Has been cancelled
ci / infra/tests/lint.sh (push) Has been cancelled
ci / playwright apps/stage (allowed to fail) (push) Has been cancelled
flybrain v0.4.0: public tree (history retained privately)
2026-09-21 15:09:46 +00:00

19 lines
696 B
Desktop File

# infra/units/pulse.service — pushed to /etc/systemd/system/pulse.service.
# docs/design/infra.md section 3. No --system mode (upstream discourages
# it), no logind/dbus dependency: a plain system unit running as `fly`
# with an explicit PULSE_RUNTIME_PATH under /run/fly sidesteps the whole
# "container has no session" problem.
[Unit]
Description=PulseAudio null sink "stream" for the fly demo
After=network.target
[Service]
Type=simple
User=fly
Environment=XDG_RUNTIME_DIR=/run/fly PULSE_RUNTIME_PATH=/run/fly/pulse
ExecStart=/usr/bin/pulseaudio -n --file=/etc/fly/pulse.pa --exit-idle-time=-1 --disallow-exit --log-target=journal
Restart=always
RestartSec=2
[Install]
WantedBy=fly.target