diff options
author | Gabriel Ebner <gebner@gebner.org> | 2019-11-04 21:19:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-04 21:19:06 +0100 |
commit | cb8423d19ba6ab9aa06e5c9fcf0fbae61aa9a12b (patch) | |
tree | 3b04e0f492ba611734e1f6ce16b41b667b4ba26a /nixos/modules/services/x11/hardware | |
parent | f65e759796fd050b9e02262897ccbc39a216e7a4 (diff) | |
parent | c2b54c59e804d4755407add9147e2c5108cf051e (diff) | |
download | nixpkgs-cb8423d19ba6ab9aa06e5c9fcf0fbae61aa9a12b.tar nixpkgs-cb8423d19ba6ab9aa06e5c9fcf0fbae61aa9a12b.tar.gz nixpkgs-cb8423d19ba6ab9aa06e5c9fcf0fbae61aa9a12b.tar.bz2 nixpkgs-cb8423d19ba6ab9aa06e5c9fcf0fbae61aa9a12b.tar.lz nixpkgs-cb8423d19ba6ab9aa06e5c9fcf0fbae61aa9a12b.tar.xz nixpkgs-cb8423d19ba6ab9aa06e5c9fcf0fbae61aa9a12b.tar.zst nixpkgs-cb8423d19ba6ab9aa06e5c9fcf0fbae61aa9a12b.zip |
Merge pull request #72698 from gebner/digimend-drivers
digimend drivers for graphics tablets
Diffstat (limited to 'nixos/modules/services/x11/hardware')
-rw-r--r-- | nixos/modules/services/x11/hardware/digimend.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/hardware/digimend.nix b/nixos/modules/services/x11/hardware/digimend.nix new file mode 100644 index 00000000000..a9f5640905a --- /dev/null +++ b/nixos/modules/services/x11/hardware/digimend.nix @@ -0,0 +1,43 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let + + cfg = config.services.xserver.digimend; + + pkg = config.boot.kernelPackages.digimend; + +in + +{ + + options = { + + services.xserver.digimend = { + + enable = mkOption { + default = false; + description = '' + Whether to enable the digimend drivers for Huion/XP-Pen/etc. tablets. + ''; + }; + + }; + + }; + + + config = mkIf cfg.enable { + + # digimend drivers use xsetwacom and wacom X11 drivers + services.xserver.wacom.enable = true; + + boot.extraModulePackages = [ pkg ]; + + environment.etc."X11/xorg.conf.d/50-digimend.conf".source = + "${pkg}/usr/share/X11/xorg.conf.d/50-digimend.conf"; + + }; + +} |