nixos/services/go2rtc.nix

19 lines
548 B
Nix
Raw Normal View History

# services/go2rtc.nix — Native go2rtc camera streaming
{ config, lib, ... }:
2026-01-21 09:26:45 +00:00
{
2026-01-21 11:47:30 +00:00
config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") {
2026-01-21 10:19:34 +00:00
services.go2rtc = {
enable = true;
settings = {
# NOTE: RTSP credentials end up in the nix store — same exposure as
# the old Docker bind-mount config. Acceptable for a local LAN camera.
streams.kids_bedroom = "rtsp://fredrik:12345678@192.168.4.39:554/stream1";
api.listen = ":1984";
webrtc.listen = ":8555";
2026-01-21 11:47:30 +00:00
};
};
};
2026-01-21 09:26:45 +00:00
}