main
1{lib, ...}: {
2 flake.modules.nixos."hosts/kevin" = _: {
3 services.libinput.enable = true;
4 };
5
6 flake.modules.homeManager."hosts/kevin" = {osConfig, ...}: let
7 hasPlasma = osConfig.services.desktopManager.plasma6.enable;
8 in
9 lib.optionalAttrs hasPlasma {
10 programs.plasma.input = {
11 touchpads = [
12 {
13 enable = true;
14 name = "SYNA2BA6:00 06CB:CF00 Touchpad";
15 productId = "cf00";
16 vendorId = "06cb";
17 disableWhileTyping = true;
18 naturalScroll = true;
19 tapToClick = true;
20 tapAndDrag = true;
21 }
22 ];
23 };
24 };
25}