blob: 77fe64515fe1c30839b18ce776825b3d0841a256 [file] [log] [blame]
Skyler Greya7ae29f2023-02-28 10:44:34 +00001{ username, config, ... }: {
2 config = {
3 hardware.opentabletdriver.enable = true;
4 environment.persistence."/nix/persist".users.${username}.directories = [
5 ".config/OpenTabletDriver"
6 ];
7 };
8 home = {
9 home.file.".config/prelaunch/otd-daemon.sh".text = ''
10 ${config.hardware.opentabletdriver.package}/bin/otd-daemon &
11 '';
12 home.file.".config/prelaunch/otd-daemon.sh".executable = true;
13 };
14}