diff --git a/modules/xconfig.nix b/modules/xconfig.nix index 71ab4a6..10a45d9 100644 --- a/modules/xconfig.nix +++ b/modules/xconfig.nix @@ -8,15 +8,18 @@ in { bqn.enable = mkEnableOption "Enables bqn layout"; - touchpad.enableProperConfig = mkEnableOption "Enable the only correct touchpad settings"; + touchpad = { + enableProperConfig = mkEnableOption "Enable the only correct touchpad settings"; + + accelProfile = mkOption { + type = types.enum [ "flat" "adaptive" ]; + default = "adaptive"; + example = "flat"; + description = '' + Usually want this on adaptive. + ''; + }; - touchpad.accelProfile = mkOption { - type = types.enum [ "flat" "adaptive" ]; - default = "adaptive"; - example = "flat"; - description = '' - Usually want this on adaptive. - ''; }; mouse.accelProfile = mkOption { @@ -68,10 +71,10 @@ in { accelProfile = cfg.mouse.accelProfile; middleEmulation = false; }; - touchpad.accelProfile = cfg.touchpad.accelProfile; touchpad = mkIf cfg.touchpad.enableProperConfig { tapping = false; disableWhileTyping = true; + accelProfile = cfg.touchpad.accelProfile; }; }; };