17 lines
302 B
Nix
17 lines
302 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
cfg = config.module.tablet;
|
|
in {
|
|
options.module.tablet.enable = lib.mkEnableOption "the support for tables.";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
hardware.opentabletdriver.enable = true;
|
|
systemd.user.services.opentabletdriver.wantedBy = [
|
|
"default.target"
|
|
];
|
|
};
|
|
}
|