Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

nixos/clickshare: init module

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.

Yarny0 b38bdf6d 8b6f54f0

+22
+1
nixos/modules/module-list.nix
··· 94 ./programs/ccache.nix 95 ./programs/cdemu.nix 96 ./programs/chromium.nix 97 ./programs/command-not-found/command-not-found.nix 98 ./programs/criu.nix 99 ./programs/dconf.nix
··· 94 ./programs/ccache.nix 95 ./programs/cdemu.nix 96 ./programs/chromium.nix 97 + ./programs/clickshare.nix 98 ./programs/command-not-found/command-not-found.nix 99 ./programs/criu.nix 100 ./programs/dconf.nix
+21
nixos/modules/programs/clickshare.nix
···
··· 1 + { config, lib, pkgs, ... }: 2 + 3 + { 4 + 5 + options.programs.clickshare-csc1.enable = 6 + lib.options.mkEnableOption '' 7 + Barco ClickShare CSC-1 driver/client. 8 + This allows users in the <literal>clickshare</literal> 9 + group to access and use a ClickShare USB dongle 10 + that is connected to the machine 11 + ''; 12 + 13 + config = lib.modules.mkIf config.programs.clickshare-csc1.enable { 14 + environment.systemPackages = [ pkgs.clickshare-csc1 ]; 15 + services.udev.packages = [ pkgs.clickshare-csc1 ]; 16 + users.groups.clickshare = {}; 17 + }; 18 + 19 + meta.maintainers = [ lib.maintainers.yarny ]; 20 + 21 + }