mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-26 22:45:03 +01:00
22 lines
565 B
Nix
22 lines
565 B
Nix
|
{ config, pkgs, ... }:
|
||
|
{
|
||
|
# USB MTP and PTP support
|
||
|
# https://wiki.archlinux.org/title/Media_Transfer_Protocol#File_manager_integration
|
||
|
|
||
|
# Mount USB MTP devices
|
||
|
services.gvfs.enable = true;
|
||
|
|
||
|
# Manage USB PTP devices (digital cameras)
|
||
|
programs.gphoto2.enable = true;
|
||
|
# To grant digital camera access to a user,
|
||
|
# the user must be part of the camera group:
|
||
|
users.users."yoda".extraGroups = ["camera"];
|
||
|
#
|
||
|
# Example usage:
|
||
|
#
|
||
|
# gphoto2 --auto-detect
|
||
|
#=> Fuji Fujifilm X-T1 usb:001,002
|
||
|
# gphoto2 --list-files
|
||
|
# gphoto2 --get-all-files
|
||
|
}
|