alpha
Login
or
Join now
seanaye.bsky.social
/
nixos-config
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
me like nix
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
put back non-container frigate
author
Sean Aye
date
3 months ago
(Mar 22, 2026, 8:03 PM -0400)
commit
9b5d2694
9b5d2694e38d2ee73e90444419b3c2d37977caf6
parent
28dfbbbf
28dfbbbfe3e4345a189fba8f52789fd5502a4962
change-id
nqorqoqn
nqorqoqnunxltymklytqqtyqpqvtpppr
+16
-22
1 changed file
Expand all
Collapse all
Unified
Split
hosts
mira
configuration.nix
+16
-22
hosts/mira/configuration.nix
Reviewed
···
177
177
port = 1883;
178
178
};
179
179
180
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
188
-
# Camera configuration - Pi Camera via go2rtc
189
187
cameras = {
190
188
picam = {
191
189
enabled = true;
192
190
ffmpeg = {
191
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
204
-
fps = 5; # Lower FPS for detection to reduce CPU
203
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
222
+
zones = {
223
223
+
driveway = {
224
224
+
coordinates = "0,0.243,1,0.544,1,1,0,1,0,0.75";
225
225
+
objects = [ "person" "car" "dog" "cat" ];
226
226
+
};
227
227
+
};
223
228
};
224
229
225
230
pizerocam = {
226
231
enabled = true;
227
232
ffmpeg = {
233
233
+
hwaccel_args = "preset-nvidia-h264";
228
234
inputs = [
229
235
{
230
236
path = "rtsp://pizero:8554/pizerocam";
231
231
-
roles = [ "detect" "record" ];
237
237
+
roles = [ "record" ];
232
238
}
233
239
];
234
240
};
235
241
detect = {
236
236
-
enabled = true;
237
237
-
width = 1280;
238
238
-
height = 720;
239
239
-
fps = 5;
242
242
+
enabled = false;
240
243
};
241
244
record = {
242
245
enabled = true;
243
246
retain = {
244
244
-
days = 7;
245
245
-
mode = "active_objects";
247
247
+
days = 2;
248
248
+
mode = "all";
246
249
};
247
250
};
248
248
-
snapshots = {
249
249
-
enabled = true;
250
250
-
bounding_box = true;
251
251
-
retain = {
252
252
-
default = 14;
253
253
-
};
254
254
-
};
255
255
-
objects = {
256
256
-
track = [ "person" "dog" "cat" "car" ];
257
257
-
};
258
251
};
259
252
};
260
253
261
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
426
-
after = [ "network.target" ];
418
418
+
wants = [ "network-online.target" ];
419
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
423
+
RestartSec = 5;
430
424
DynamicUser = true;
431
425
StateDirectory = "trmnl-rs";
432
426
WorkingDirectory = "/var/lib/trmnl-rs";