nixos/sfh: Start Home Assistant without the webcam

An absent webcam made the nspawn bind mount fail before Home
Assistant could start. Give the container an always-present
directory and bind the video device into it when it is available.
Point go2rtc at the device in that directory.
This commit is contained in:
2026-11-18 22:01:54 +00:00
parent 4307939aab
commit 89cc4b679c
3 changed files with 18 additions and 8 deletions
@@ -113,7 +113,7 @@ in
"rtsp://admin:@reolink-living-room:554/h264Preview_01_main"
];
webcam_office = [
"ffmpeg:device?video=/dev/video0&video_size=1024x576#video=h264"
"ffmpeg:device?video=/dev/hass-webcam/video0&video_size=1024x576#video=h264"
];
};
};