me like nix
0

Configure Feed

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

update pi cam

author
Sean Aye
date (Apr 12, 2026, 7:08 PM -0400) commit 142bfc44 parent 8c3862f7 change-id ysyopprn
+8 -2
+8 -2
modules/pi-camera.nix
··· 108 108 }; 109 109 110 110 config = { 111 - boot.kernelParams = [ "cma=256M" ]; 111 + # CMA is configured via device tree overlay (cma-256m) 112 + # Do NOT use boot.kernelParams cma= as it bypasses the DT node 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 - "${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 + "${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 + SupplementaryGroups = [ "video" ]; 165 + }; 166 + systemd.services.go2rtc.environment = { 167 + LIBCAMERA_IPA_MODULE_PATH = "${libcamera-rpi}/lib/libcamera/ipa"; 162 168 }; 163 169 164 170 environment.systemPackages = [