1{ lib, config, ... }:
2
3with lib;
4let
5 cfg = config.modules.desktop;
6in {
7 options.modules.desktop.rawaccel = {
8 enable = mkOption {
9 default = cfg.enable;
10 example = true;
11 description = "Whether to enable Yeetmouse (fork of Leetmouse / Rawaccel for Linux).";
12 type = types.bool;
13 };
14 };
15
16 config = mkIf cfg.rawaccel.enable {
17 hardware.yeetmouse = {
18 enable = true;
19 sensitivity = 0.56;
20 offset = 5.9;
21 inputCap = 35.0;
22 preScale = 0.17;
23 rotation.angle = 3.0;
24 mode.jump = {
25 acceleration = 3.97;
26 midpoint = 4.1;
27 smoothness = 1.0;
28 useSmoothing = true;
29 };
30 };
31 };
32}