Skip to content

Commit 2e863bd

Browse files
shanemcdclaude
andcommitted
Move Sunshine service override to chezmoi dotfiles
Keep only the setcap boot service in Containerfile. User service override now managed via dotfiles for flexibility. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5d6dc84 commit 2e863bd

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

mybox/Containerfile

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,9 @@ EOF
203203
systemctl enable apcupsd
204204
systemctl enable shairport-sync
205205

206-
# Sunshine KMS capture setup:
207-
# - /usr is read-only (composefs), so we can't setcap on /usr/bin/sunshine
208-
# - Copy to /usr/local/bin (symlink to /var/usrlocal, writable) and setcap there
209-
# - Override the user service to use the local copy
210-
211-
# System service: copy sunshine and set capability at boot
206+
# Sunshine KMS capture: copy to writable location and set capability
207+
# /usr is read-only (composefs), so copy to /usr/local/bin and setcap there
208+
# User service override is managed via chezmoi dotfiles
212209
cat > /usr/lib/systemd/system/sunshine-setcap.service <<'EOF'
213210
[Unit]
214211
Description=Setup Sunshine with CAP_SYS_ADMIN for KMS capture
@@ -224,12 +221,4 @@ RemainAfterExit=yes
224221
WantedBy=multi-user.target
225222
EOF
226223
systemctl enable sunshine-setcap.service
227-
228-
# Global user service override: use /usr/local/bin/sunshine
229-
mkdir -p /usr/lib/systemd/user/sunshine.service.d
230-
cat > /usr/lib/systemd/user/sunshine.service.d/override.conf <<'EOF'
231-
[Service]
232-
ExecStart=
233-
ExecStart=/usr/local/bin/sunshine
234-
EOF
235224
EORUN

0 commit comments

Comments
 (0)