me like nix
0

Configure Feed

Select the types of activity you want to include in your feed.

put back non-container frigate

author
Sean Aye
date (Mar 22, 2026, 8:03 PM -0400) commit 9b5d2694 parent 28dfbbbf change-id nqorqoqn
+16 -22
+16 -22
hosts/mira/configuration.nix
··· 177 177 port = 1883; 178 178 }; 179 179 180 - # Detector configuration - CPU for now (can add GPU later) 181 180 detectors = { 182 181 cpu = { 183 182 type = "cpu"; ··· 185 184 }; 186 185 }; 187 186 188 - # Camera configuration - Pi Camera via go2rtc 189 187 cameras = { 190 188 picam = { 191 189 enabled = true; 192 190 ffmpeg = { 191 + hwaccel_args = "preset-nvidia-h264"; 193 192 inputs = [ 194 193 { 195 194 path = "rtsp://pi:8554/picam"; ··· 201 200 enabled = true; 202 201 width = 1920; 203 202 height = 1080; 204 - fps = 5; # Lower FPS for detection to reduce CPU 203 + fps = 5; 205 204 }; 206 205 record = { 207 206 enabled = true; ··· 220 219 objects = { 221 220 track = [ "person" "dog" "cat" "car" ]; 222 221 }; 222 + zones = { 223 + driveway = { 224 + coordinates = "0,0.243,1,0.544,1,1,0,1,0,0.75"; 225 + objects = [ "person" "car" "dog" "cat" ]; 226 + }; 227 + }; 223 228 }; 224 229 225 230 pizerocam = { 226 231 enabled = true; 227 232 ffmpeg = { 233 + hwaccel_args = "preset-nvidia-h264"; 228 234 inputs = [ 229 235 { 230 236 path = "rtsp://pizero:8554/pizerocam"; 231 - roles = [ "detect" "record" ]; 237 + roles = [ "record" ]; 232 238 } 233 239 ]; 234 240 }; 235 241 detect = { 236 - enabled = true; 237 - width = 1280; 238 - height = 720; 239 - fps = 5; 242 + enabled = false; 240 243 }; 241 244 record = { 242 245 enabled = true; 243 246 retain = { 244 - days = 7; 245 - mode = "active_objects"; 247 + days = 2; 248 + mode = "all"; 246 249 }; 247 250 }; 248 - snapshots = { 249 - enabled = true; 250 - bounding_box = true; 251 - retain = { 252 - default = 14; 253 - }; 254 - }; 255 - objects = { 256 - track = [ "person" "dog" "cat" "car" ]; 257 - }; 258 251 }; 259 252 }; 260 253 261 - # Recording storage 262 254 record = { 263 255 enabled = true; 264 256 retain = { ··· 423 415 systemd.services.trmnl-rs = { 424 416 description = "TRMNL Server"; 425 417 wantedBy = [ "multi-user.target" ]; 426 - after = [ "network.target" ]; 418 + wants = [ "network-online.target" ]; 419 + after = [ "network-online.target" "nss-lookup.target" ]; 427 420 serviceConfig = { 428 421 ExecStart = "${inputs.trmnl-rs.packages.x86_64-linux.default}/bin/server"; 429 422 Restart = "on-failure"; 423 + RestartSec = 5; 430 424 DynamicUser = true; 431 425 StateDirectory = "trmnl-rs"; 432 426 WorkingDirectory = "/var/lib/trmnl-rs";