{ config, lib, ... }: let cfg = config.sane.programs.libcamera; in { sane.programs.libcamera = { sandbox.method = null; #< TODO: sandbox }; services.udev.extraRules = lib.mkIf cfg.enabled '' # libcamera (snapshot, millipixels, ...) # see: # can be removed for systemd 257+ # - # # i do the old and/or lazy way, just grant broad R+W access # dma_heap is the old resource; udmabuf is the new one. # dev show up at `/dev/udmabuf` KERNEL=="udmabuf", GROUP="video", MODE="0660" SUBSYSTEM=="dma_heap", GROUP="video", MODE="0660" ''; }