added frigate service module

This commit is contained in:
Bryan Ramos 2025-07-15 01:01:45 -04:00
parent 608783b10c
commit bc7fcae70c
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8

View file

@ -0,0 +1,68 @@
{ pkgs, lib, config, ... }:
with lib;
let
cfg = config.modules.system.frigate;
nginx = config.modules.system.nginx;
in
{ options.modules.system.frigate = { enable = mkEnableOption "Enable Frigate NVR"; };
config = mkIf cfg.enable {
services.frigate = {
enable = true;
hostname = "frigate";
settings = {
mqtt = {
enabled = true;
host = "localhost";
};
cameras = {
"Doorbell" = {
ffpmeg.inputs = [
{
path = "rtsp://admin:th3bigbl4ck@192.168.0.108/cam/realmonitor?channel=1&subtype=0";
roles = [ "detect" "record" ];
}
];
};
"Living Room" = {
ffpmeg.inputs = [
{
path = "rtsp://admin:th3bigbl4ck@192.168.0.181/cam/realmonitor?channel=1&subtype=0";
roles = [ "detect" "record" ];
}
];
};
"Kitchen" = {
ffpmeg.inputs = [
{
path = "rtsp://admin:th3bigbl4ck@192.168.0.181/cam/realmonitor?channel=2&subtype=0";
roles = [ "detect" "record" ];
}
];
};
"Parking Lot" = {
ffpmeg.inputs = [
{
path = "rtsp://admin:th3bigbl4ck@192.168.0.59/cam/realmonitor?channel=1&subtype=0";
roles = [ "detect" "record" ];
}
];
};
"Porch" = {
ffpmeg.inputs = [
{
path = "rtsp://admin:th3bigbl4ck@192.168.0.108/cam/realmonitor?channel=1&subtype=0";
roles = [ "detect" "record" ];
}
];
};
};
};
};
};
}