blob: f80d6904cdd140fcf4bad7168a9e8c295e4cef05 [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 Grey4e230892024-02-13 22:58:46 +00005 config = lib.mkIf config.chimera.touchpad.enable {
Skyler Greya0da6b22024-02-11 22:53:41 +00006 services.fusuma.enable = true;
7
8 systemd.user.startServices = "sd-switch";
9
Skyler Grey4e230892024-02-13 22:58:46 +000010 systemd.user.services.fusuma.Unit.X-Restart-Triggers = [
Skyler Grey6b8b30c2024-04-20 22:20:37 +000011 config.xdg.configFile."fusuma/config.yml".source
Skyler Grey4e230892024-02-13 22:58:46 +000012 ];
Skyler Greya0da6b22024-02-11 22:53:41 +000013 };
Skyler Grey4e230892024-02-13 22:58:46 +000014}