From 30991dd5371f4282b1d76476a460eb76ad4e7af1 Mon Sep 17 00:00:00 2001 From: Bryan Ramos Date: Thu, 12 Mar 2026 05:22:12 -0400 Subject: [PATCH] added cameras --- src/system/machines/desktop/system.nix | 7 +- src/system/modules/frigate/default.nix | 99 +++++++++----------------- 2 files changed, 40 insertions(+), 66 deletions(-) diff --git a/src/system/machines/desktop/system.nix b/src/system/machines/desktop/system.nix index 5fe6e0f..402fa85 100644 --- a/src/system/machines/desktop/system.nix +++ b/src/system/machines/desktop/system.nix @@ -100,7 +100,12 @@ in services.dnsmasq = { enable = true; settings = { - address = "/.ramos.codes/192.168.0.154"; + # Only specific subdomains go to local server + address = [ + "/git.ramos.codes/192.168.0.154" + "/frigate.ramos.codes/192.168.0.154" + "/test.ramos.codes/192.168.0.154" + ]; server = [ "1.1.1.1" "8.8.8.8" ]; }; }; diff --git a/src/system/modules/frigate/default.nix b/src/system/modules/frigate/default.nix index 718ba9d..94e345c 100644 --- a/src/system/modules/frigate/default.nix +++ b/src/system/modules/frigate/default.nix @@ -19,73 +19,41 @@ in settings = { mqtt.enabled = false; cameras = { - # "doorbell" = { - # ffmpeg = { - # inputs = [ - # { - # path = "rtsp://admin:ocu?u3Su@192.168.0.134/cam/realmonitor?channel=1&subtype=0"; - # roles = [ "record" ]; - # } - # { - # path = "rtsp://admin:ocu?u3Su@192.168.0.134/cam/realmonitor?channel=1&subtype=1"; - # roles = [ "detect" ]; - # } - # ]; - # }; - # }; - "living_room" = { + doorbell = { detect.enabled = false; - ffmpeg = { - inputs = [ - { - path = "rtsp://admin:ocu?u3Su@192.168.0.181/cam/realmonitor?channel=1&subtype=0"; - roles = [ "record" ]; - } - ]; - }; + ffmpeg.inputs = [{ + path = "rtsp://admin:ocu?u3Su@192.168.0.134/cam/realmonitor?channel=1&subtype=0"; + roles = [ "record" ]; + }]; + }; + living_room = { + detect.enabled = false; + ffmpeg.inputs = [{ + path = "rtsp://admin:ocu?u3Su@192.168.0.181/cam/realmonitor?channel=1&subtype=0"; + roles = [ "record" ]; + }]; + }; + kitchen = { + detect.enabled = false; + ffmpeg.inputs = [{ + path = "rtsp://admin:ocu?u3Su@192.168.0.181/cam/realmonitor?channel=2&subtype=0"; + roles = [ "record" ]; + }]; + }; + parking_lot = { + detect.enabled = false; + ffmpeg.inputs = [{ + path = "rtsp://admin:ocu?u3Su@192.168.0.59/cam/realmonitor?channel=1&subtype=0"; + roles = [ "record" ]; + }]; + }; + porch = { + detect.enabled = false; + ffmpeg.inputs = [{ + path = "rtsp://admin:ocu?u3Su@192.168.0.43/cam/realmonitor?channel=1&subtype=0"; + roles = [ "record" ]; + }]; }; - # "kitchen" = { - # ffmpeg = { - # inputs = [ - # { - # path = "rtsp://admin:ocu?u3Su@192.168.0.181/cam/realmonitor?channel=2&subtype=0"; - # roles = [ "record" ]; - # } - # { - # path = "rtsp://admin:ocu?u3Su@192.168.0.181/cam/realmonitor?channel=2&subtype=1"; - # roles = [ "detect" ]; - # } - # ]; - # }; - # }; - # "parking_lot" = { - # ffmpeg = { - # inputs = [ - # { - # path = "rtsp://admin:ocu?u3Su@192.168.0.59/cam/realmonitor?channel=1&subtype=0"; - # roles = [ "record" ]; - # } - # { - # path = "rtsp://admin:ocu?u3Su@192.168.0.59/cam/realmonitor?channel=1&subtype=1"; - # roles = [ "detect" ]; - # } - # ]; - # }; - # }; - # "porch" = { - # ffmpeg = { - # inputs = [ - # { - # path = "rtsp://admin:ocu?u3Su@192.168.0.43/cam/realmonitor?channel=1&subtype=0"; - # roles = [ "record" ]; - # } - # { - # path = "rtsp://admin:ocu?u3Su@192.168.0.43/cam/realmonitor?channel=1&subtype=1"; - # roles = [ "detect" ]; - # } - # ]; - # }; - # }; }; }; }; @@ -95,5 +63,6 @@ in useACMEHost = domain; forceSSL = true; }; + }; }