From e049b503384093f10c4e0b7889bac9136d2aa3d6 Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Wed, 3 Jan 2024 13:59:25 +0100 Subject: [PATCH 1/2] hmm hmm... --- modules/xconfig.nix | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/modules/xconfig.nix b/modules/xconfig.nix index 71ab4a6..917f1bf 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 { From 450d5a7ac8e84595040e879b7ad099c8255b363f Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Wed, 3 Jan 2024 14:08:05 +0100 Subject: [PATCH 2/2] Maybe this helps --- modules/xconfig.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/xconfig.nix b/modules/xconfig.nix index 917f1bf..10a45d9 100644 --- a/modules/xconfig.nix +++ b/modules/xconfig.nix @@ -71,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; }; }; };