Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 1 | { lib, config, ... }: |
| 2 | { |
Samuel Shuert | f513689 | 2024-06-20 21:04:47 -0400 | [diff] [blame] | 3 | options.chimera.input.touchpad.enable = lib.mkEnableOption "Enable touchpad gestures"; |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 4 | |
Skyler Grey | 69a999e | 2024-05-23 00:09:10 +0000 | [diff] [blame] | 5 | |
Samuel Shuert | f513689 | 2024-06-20 21:04:47 -0400 | [diff] [blame] | 6 | config = lib.mkIf (config.chimera.input.touchpad.enable && config.chimera.hyprland.enable) { |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 7 | services.fusuma.enable = true; |
| 8 | |
| 9 | systemd.user.startServices = "sd-switch"; |
| 10 | |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 11 | systemd.user.services.fusuma.Unit.X-Restart-Triggers = [ |
Skyler Grey | 6b8b30c | 2024-04-20 22:20:37 +0000 | [diff] [blame] | 12 | config.xdg.configFile."fusuma/config.yml".source |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 13 | ]; |
Skyler Grey | a0da6b2 | 2024-02-11 22:53:41 +0000 | [diff] [blame] | 14 | }; |
Skyler Grey | 4e23089 | 2024-02-13 22:58:46 +0000 | [diff] [blame] | 15 | } |