diff --git a/hosts/chopper/default.nix b/hosts/chopper/default.nix index a7598c4..369896b 100644 --- a/hosts/chopper/default.nix +++ b/hosts/chopper/default.nix @@ -9,7 +9,6 @@ let "attic_secret" "cloudflare" "pushover" - "frigate" "mosquitto" "hercules_join" "hercules_secrets" @@ -37,7 +36,6 @@ in ./monitoring.nix ./unifi.nix ./homeassistant.nix - #./frigate.nix ./hercules-ci.nix ./paperless.nix ]; @@ -147,7 +145,6 @@ in "loki.${wildcardDomain}" = mkVirtualHost 3100; "grafana.${wildcardDomain}" = mkSocketVirtualHost "/run/grafana/grafana.sock"; "pingshutdown.${wildcardDomain}" = mkVirtualHost 9081; - "frigate.${wildcardDomain}" = mkSocketVirtualHost "/run/nginx/frigate.sock"; "hass.${wildcardDomain}" = mkVirtualHost 8123; "node-red.${wildcardDomain}" = mkVirtualHost 1880; "paperless.${wildcardDomain}" = mkVirtualHost config.services.paperless.port; diff --git a/hosts/chopper/frigate.nix b/hosts/chopper/frigate.nix deleted file mode 100644 index fad60ce..0000000 --- a/hosts/chopper/frigate.nix +++ /dev/null @@ -1,62 +0,0 @@ -{ lib, config, ... }: -let - frigateVhost = "frigate.chopper.devusb.us"; -in -{ - services.frigate = { - enable = true; - hostname = frigateVhost; - settings = { - ffmpeg = { - hwaccel_args = "preset-vaapi"; - }; - cameras = { - foyer = { - enabled = true; - ffmpeg.inputs = [ - { - path = "rtsp://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@192.168.40.2:554/cam/realmonitor?channel=1&subtype=0"; - roles = [ - "detect" - ]; - } - ]; - detect = { - width = 1280; - height = 720; - enabled = false; - }; - }; - dining_room = { - enabled = true; - ffmpeg.inputs = [ - { - path = "rtsp://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@192.168.40.3:554/cam/realmonitor?channel=1&subtype=0"; - roles = [ - "detect" - ]; - } - ]; - detect = { - width = 1280; - height = 720; - enabled = false; - }; - }; - }; - }; - }; - - systemd.services.frigate = { - serviceConfig.EnvironmentFile = config.sops.secrets.frigate.path; - environment.LIBVA_DRIVER_NAME = "radeonsi"; - }; - - services.nginx.virtualHosts."${frigateVhost}" = { - listen = lib.singleton { - addr = "unix:/run/nginx/frigate.sock"; - }; - }; - systemd.services.nginx.serviceConfig.RuntimeDirectoryMode = lib.mkForce "0755"; - -}