From 20099d7c90db419c18c46bf9a0ff0ad2aa95b100 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Fri, 24 Jun 2022 08:42:58 +0200 Subject: [PATCH] Add opentabletdriver module --- machines/loki/configuration.nix | 1 + modules/tablet/default.nix | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 modules/tablet/default.nix diff --git a/machines/loki/configuration.nix b/machines/loki/configuration.nix index c16c66d..98fb3ea 100644 --- a/machines/loki/configuration.nix +++ b/machines/loki/configuration.nix @@ -45,6 +45,7 @@ in nix-serve = { enable = true; }; + tablet.enable = false; sound.enable = true; systemd.enable = true; }; diff --git a/modules/tablet/default.nix b/modules/tablet/default.nix new file mode 100644 index 0000000..b325450 --- /dev/null +++ b/modules/tablet/default.nix @@ -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; + }; + }; +}