1 { config, lib, pkgs, ... }:
4 meta.maintainers = [ lib.maintainers.league ];
9 enable = lib.mkOption {
11 type = lib.types.bool;
13 Whether to configure system to use gphoto2.
14 To grant digital camera access to a user, the user must
15 be part of the camera group:
16 `users.users.alice.extraGroups = ["camera"];`
23 config = lib.mkIf config.programs.gphoto2.enable {
24 services.udev.packages = [ pkgs.libgphoto2 ];
25 environment.systemPackages = [ pkgs.gphoto2 ];
26 users.groups.camera = {};