Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 1 | { lib, config, ... }: |
| 2 | { |
| 3 | options.chimera.touchpad.enable = lib.mkEnableOption "Enable touchpad gestures"; |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 4 | |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 5 | config = lib.mkIf config.chimera.touchpad.enable { |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 6 | services.fusuma.enable = true; |
| 7 | |
| 8 | systemd.user.startServices = "sd-switch"; |
| 9 | |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 10 | systemd.user.services.fusuma.Unit.X-Restart-Triggers = [ |
Skyler Grey | 6b8b30c | 2024-04-20 22:20:37 +0000 | [diff] [blame] | 11 | config.xdg.configFile."fusuma/config.yml".source |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 12 | ]; |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 13 | }; |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 14 | } |