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
update pi cam
author
Sean Aye
date
2 months ago
(Apr 12, 2026, 7:08 PM -0400)
commit
142bfc44
142bfc444a05298c87892a74c67e5e1db83c12ef
parent
8c3862f7
8c3862f7ac155cdf1bd9443554229284d4b7a783
change-id
ysyopprn
ysyopprnvvmtsvxwksswptrvuywzzoqx
+8
-2
1 changed file
Expand all
Collapse all
Unified
Split
modules
pi-camera.nix
+8
-2
modules/pi-camera.nix
Reviewed
···
108
108
};
109
109
110
110
config = {
111
111
-
boot.kernelParams = [ "cma=256M" ];
111
111
+
# CMA is configured via device tree overlay (cma-256m)
112
112
+
# Do NOT use boot.kernelParams cma= as it bypasses the DT node
113
113
+
# and prevents /dev/dma_heap/linux,cma from being created
112
114
113
115
nix.settings.trusted-users = [ "sean" ];
114
116
···
148
150
settings = {
149
151
ffmpeg.bin = "${pkgs.ffmpeg}/bin/ffmpeg";
150
152
streams = {
151
151
-
"${cfg.streamName}" = "exec:${rpicam-apps}/bin/rpicam-vid -t 0 --width ${toString cfg.resolution.width} --height ${toString cfg.resolution.height} --framerate ${toString cfg.framerate} --codec h264 --inline${lib.optionalString cfg.flipCamera " --vflip --hflip"} -o -";
153
153
+
"${cfg.streamName}" = "exec:${rpicam-apps}/bin/rpicam-vid -t 0 --width ${toString cfg.resolution.width} --height ${toString cfg.resolution.height} --framerate ${toString cfg.framerate} --codec h264 --inline --autofocus-mode continuous${lib.optionalString cfg.flipCamera " --vflip --hflip"} -o -";
152
154
};
153
155
};
154
156
};
···
159
161
160
162
systemd.services.go2rtc.serviceConfig = {
161
163
User = lib.mkForce "root";
164
164
+
SupplementaryGroups = [ "video" ];
165
165
+
};
166
166
+
systemd.services.go2rtc.environment = {
167
167
+
LIBCAMERA_IPA_MODULE_PATH = "${libcamera-rpi}/lib/libcamera/ipa";
162
168
};
163
169
164
170
environment.systemPackages = [