1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00
nixpkgs/nixos/modules
Thiago Kenji Okada cd15b3a30a nixos/libinput: separate settings by mouse/touchpad
This commits deprecates `services.xserver.libinput` for multiple
settings, one for each kind of device:

- `services.xserver.libinput.mouse`
- `services.xserver.libinput.touchpad`

Looking at `man 4 libinput`, they basically have the same options so I
simply replicated them, even if some options doesn't make sense for
mouse (`tapping` for example).

With this commit this is now possible:

```nix
{
  services.xserver.libinput = {
    enable = true;
    mouse = {
      accelProfile = "flat";
    };
    touchpad = {
      naturalScrolling = true;
    };
  };
}
```

And you will have a mouse with no natural scrolling but with accel
profile flat, while touchpad will have natural scrolling but accel
profile adaptative (default).

It is possible to support more device types
(tablets/keyboards/touchscreens), but at least looking at the
libinput manual for those devices it doesn't seem that it has any
configuration options for them. They can still be configured using
`services.xserver.inputClassSections` though, and this will work now
since there is no rule by default that matches them.

Closes issue #75007, while also making configuration of mouses and
touchpads using Nix attrs possible like said in PR #73785.
2021-01-13 09:54:28 -03:00
..
config nixos/networking: make /etc/netgroup by default 2021-01-10 11:01:48 +09:00
hardware nixos/opentabletdriver: add thiagokokada as maintainer 2021-01-08 18:53:55 -03:00
i18n/input-method nixos/input-methods: add fcitx5 2021-01-10 14:31:08 +08:00
installer nixos/getty: rename from services.mingetty 2021-01-05 09:09:42 +00:00
misc nixos/ids: remove reserved searx ids 2021-01-11 08:41:15 +01:00
profiles nixos/getty: rename from services.mingetty 2021-01-05 09:09:42 +00:00
programs Merge pull request #108402 from ymatsiuk/add-appgate-sdp 2021-01-08 10:51:27 +01:00
security nixos/pam: use pam_faillock instead of pam_tally 2021-01-03 15:54:23 +01:00
services nixos/libinput: separate settings by mouse/touchpad 2021-01-13 09:54:28 -03:00
system Merge pull request #78430 from puckipedia/fix-initrd-silent 2021-01-11 13:18:45 +01:00
tasks bcachefs: add sha256 kernel module 2020-12-25 21:28:50 +01:00
testing nixos/tests: only apply qemu parameters if the options are defined 2020-10-25 13:42:01 +01:00
virtualisation ec2-amis: 2020-11-23 update (#104740) 2021-01-11 12:37:14 -05:00
module-list.nix Merge pull request #104658 from poscat0x04/add-fcitx5 2021-01-10 15:26:27 +01:00
rename.nix frab: remove package 2020-12-10 22:24:11 +01:00