Add opentabletdriver module
This commit is contained in:
parent
ed7d7f33b6
commit
20099d7c90
2 changed files with 16 additions and 0 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
15
modules/tablet/default.nix
Normal file
15
modules/tablet/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue