mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
b38bdf6d2f
The clickshare-csc1 package brings a udev rule file to grant access to the ClickShare dongle if connected. This module provides an option to install that rule file. Only users in the "clickshare" users group have access.
22 lines
591 B
Nix
22 lines
591 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
options.programs.clickshare-csc1.enable =
|
|
lib.options.mkEnableOption ''
|
|
Barco ClickShare CSC-1 driver/client.
|
|
This allows users in the <literal>clickshare</literal>
|
|
group to access and use a ClickShare USB dongle
|
|
that is connected to the machine
|
|
'';
|
|
|
|
config = lib.modules.mkIf config.programs.clickshare-csc1.enable {
|
|
environment.systemPackages = [ pkgs.clickshare-csc1 ];
|
|
services.udev.packages = [ pkgs.clickshare-csc1 ];
|
|
users.groups.clickshare = {};
|
|
};
|
|
|
|
meta.maintainers = [ lib.maintainers.yarny ];
|
|
|
|
}
|