Add opentabletdriver module

This commit is contained in:
Erwin Boskma 2022-06-24 08:42:58 +02:00
parent ed7d7f33b6
commit 20099d7c90
Signed by: erwin
GPG key ID: 270B20D17394F7E5
2 changed files with 16 additions and 0 deletions

View file

@ -45,6 +45,7 @@ in
nix-serve = { nix-serve = {
enable = true; enable = true;
}; };
tablet.enable = false;
sound.enable = true; sound.enable = true;
systemd.enable = true; systemd.enable = true;
}; };

View file

@ -0,0 +1,15 @@
{ pkgs, config, lib, ...}:
with lib;
let
cfg = config.eboskma.tablet;
in
{
options.eboskma.tablet = { enable = mkEnableOption "tablet"; };
config = mkIf (cfg.enable) {
hardware.opentabletdriver = {
enable = true;
daemon.enable = true;
};
};
}