diff options
author | Florian Klink <flokli@flokli.de> | 2019-06-02 12:41:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-02 12:41:21 +0200 |
commit | 640afe964e4336efa4a5d0902a6af7a860f0ee7b (patch) | |
tree | a637989aa258c995311f972700f598d184a9fd9f /nixos | |
parent | 1ccd410e40d6a2dd56706f1cf17d7125b350cd8e (diff) | |
parent | b38bdf6d2fadc3305bf6c967b42e5282a4e92433 (diff) |
Barco clickshare (#59891)
Barco clickshare
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/module-list.nix | 1 | ||||
-rw-r--r-- | nixos/modules/programs/clickshare.nix | 21 |
2 files changed, 22 insertions, 0 deletions
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 5ad11b87d23e0..49b5076aefde1 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -94,6 +94,7 @@ ./programs/ccache.nix ./programs/cdemu.nix ./programs/chromium.nix + ./programs/clickshare.nix ./programs/command-not-found/command-not-found.nix ./programs/criu.nix ./programs/dconf.nix diff --git a/nixos/modules/programs/clickshare.nix b/nixos/modules/programs/clickshare.nix new file mode 100644 index 0000000000000..9980a7daf5254 --- /dev/null +++ b/nixos/modules/programs/clickshare.nix @@ -0,0 +1,21 @@ +{ 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 ]; + +} |