nixos-config/modules/tablet/default.nix

15 lines
273 B
Nix

{ 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;
};
};
}