blob: 73bdb8354319cab9d7f608c165a6ff7c119fdab1 [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 = [
11 config.xdg.configFile."fusuma/config.yaml".source
12 ];
Skyler Greya0da6b22024-02-11 22:53:41 +000013 };
Skyler Grey4e230892024-02-13 22:58:46 +000014}