blob: d118ff6a0bfe427ef5e17c3f435202fcf6f343c2 [file] [log] [blame]
Skyler Grey4e230892024-02-13 22:58:46 +00001{ lib, config, ... }:
2{
Samuel Shuertf5136892024-06-20 21:04:47 -04003 options.chimera.input.touchpad.enable = lib.mkEnableOption "Enable touchpad gestures";
Skyler Greya0da6b22024-02-11 22:53:41 +00004
Skyler Grey69a999e2024-05-23 00:09:10 +00005
Samuel Shuertf5136892024-06-20 21:04:47 -04006 config = lib.mkIf (config.chimera.input.touchpad.enable && config.chimera.hyprland.enable) {
Skyler Greya0da6b22024-02-11 22:53:41 +00007 services.fusuma.enable = true;
8
9 systemd.user.startServices = "sd-switch";
10
Skyler Grey4e230892024-02-13 22:58:46 +000011 systemd.user.services.fusuma.Unit.X-Restart-Triggers = [
Skyler Grey6b8b30c2024-04-20 22:20:37 +000012 config.xdg.configFile."fusuma/config.yml".source
Skyler Grey4e230892024-02-13 22:58:46 +000013 ];
Skyler Greya0da6b22024-02-11 22:53:41 +000014 };
Skyler Grey4e230892024-02-13 22:58:46 +000015}