feat: move additional hardware to dedicated module.
This commit is contained in:
parent
1717d75db7
commit
7a276908ef
4 changed files with 33 additions and 3 deletions
14
modules/nixos/additional-hardware/graphics-tablet.nix
Normal file
14
modules/nixos/additional-hardware/graphics-tablet.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
crony.additional-hardware.otd.enable = lib.mkEnableOption "Enable OpenTabletDriver";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.crony.additional-hardware.otd.enable {
|
||||
# Setup OpenTabletDriver graphic tablet driver
|
||||
hardware.opentabletdriver.enable = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue