From 4e0a7d5253ef72632584f13bb0731cc86435e1eb Mon Sep 17 00:00:00 2001 From: isabel Date: Wed, 10 Jun 2026 20:14:08 +0100 Subject: [PATCH] nixos/hardware/touchpad: use enable option --- modules/nixos/hardware/touchpad.nix | 37 +++++++++++++---------------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/modules/nixos/hardware/touchpad.nix b/modules/nixos/hardware/touchpad.nix index ef26ac48..1ec8fa02 100644 --- a/modules/nixos/hardware/touchpad.nix +++ b/modules/nixos/hardware/touchpad.nix @@ -1,27 +1,22 @@ -{ lib, config, ... }: -let - inherit (lib.modules) mkIf; -in +{ config, ... }: { - config = mkIf config.garden.profiles.laptop.enable { - # Input settings for libinput - services.libinput = { - enable = true; + # Input settings for libinput + services.libinput = { + enable = config.garden.profiles.laptop.enable; - # disable mouse acceleration (yes im gamer) - mouse = { - accelProfile = "flat"; - accelSpeed = "0"; - middleEmulation = false; - }; + # disable mouse acceleration (yes im gamer) + mouse = { + accelProfile = "flat"; + accelSpeed = "0"; + middleEmulation = false; + }; - # touchpad settings - touchpad = { - naturalScrolling = true; - tapping = true; - clickMethod = "clickfinger"; - disableWhileTyping = true; - }; + # touchpad settings + touchpad = { + naturalScrolling = true; + tapping = true; + clickMethod = "clickfinger"; + disableWhileTyping = true; }; }; } -- 2.51.2