blob: c471fcbea8cdd0a0adff057c14c3419da87fce42 [file] [log] [blame]
Skyler Grey4e230892024-02-13 22:58:46 +00001{ lib, config, ... }:
2{
3 options.chimera.touchpad.enable = lib.mkEnableOption "Enable touchpad gestures";
Skyler Greya0da6b22024-02-11 22:53:41 +00004
Skyler Grey69a999e2024-05-23 00:09:10 +00005
6 config = lib.mkIf (config.chimera.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}