Tablet, add opentabletdrivers
This commit is contained in:
parent
954f44b663
commit
172da40e61
2 changed files with 16 additions and 0 deletions
|
|
@ -5,5 +5,6 @@
|
|||
./display_manager
|
||||
./nvidia
|
||||
./wayland_compositors
|
||||
./tabletdrivers
|
||||
];
|
||||
}
|
||||
|
|
|
|||
15
nixosModules/services/graphics/tabletdrivers/default.nix
Normal file
15
nixosModules/services/graphics/tabletdrivers/default.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
options = {
|
||||
tablet.enable = lib.mkEnableOption
|
||||
"Enables tablet support";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.tablet.enable {
|
||||
hardware.opentabletdriver.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
opentabletdriver
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue