Enable OpenTabletDriver for my new tablet
diff --git a/modules/drawing.nix b/modules/drawing.nix
new file mode 100644
index 0000000..77fe645
--- /dev/null
+++ b/modules/drawing.nix
@@ -0,0 +1,14 @@
+{ username, config, ... }: {
+ config = {
+ hardware.opentabletdriver.enable = true;
+ environment.persistence."/nix/persist".users.${username}.directories = [
+ ".config/OpenTabletDriver"
+ ];
+ };
+ home = {
+ home.file.".config/prelaunch/otd-daemon.sh".text = ''
+ ${config.hardware.opentabletdriver.package}/bin/otd-daemon &
+ '';
+ home.file.".config/prelaunch/otd-daemon.sh".executable = true;
+ };
+}