nixpkgs/nixos/modules/services/x11
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
..
desktop-managers Merge pull request #108107 from talyz/reintroduce-epiphany 2021-01-09 16:45:31 -05:00
display-managers nixos/sddm: use attrs instead of plain text 2020-12-29 05:06:38 +08:00
hardware nixos/libinput: separate settings by mouse/touchpad 2021-01-13 09:54:28 -03:00
window-managers XMonad: configured recompile (#107696) 2020-12-28 17:27:36 +01:00
clight.nix
colord.nix nixos/systemd: Implement a packages option for tmpfiles 2020-07-18 00:03:47 +02:00
extra-layouts.nix treewide: replace make/build/configure/patchFlags with nix lists 2019-12-30 12:58:11 +01:00
fractalart.nix
gdk-pixbuf.nix nixos/gdk-pixbuf.nix: don’t set GDK_PIXBUF_MODULE_FILE in cross 2020-05-07 14:39:42 -05:00
imwheel.nix nixos/services.imwheel: sleep 3s before restarting 2020-08-22 14:52:18 +02:00
picom.nix nixos/picom: add experimentalBackends option 2020-09-09 11:30:48 +02:00
redshift.nix nixos/redshift: add executable option 2020-09-30 17:00:38 -06:00
terminal-server.nix utillinux: rename to util-linux 2020-11-24 12:42:06 -05:00
unclutter-xfixes.nix
unclutter.nix nixos/unclutter: fix remaining typo 2020-02-14 01:28:03 +01:00
urserver.nix nixos/urserver: init 2020-08-09 12:33:37 -07:00
urxvtd.nix nixos/urxvtd: use new package name for rxvt-unicode 2020-02-13 09:33:58 +01:00
xautolock.nix nixos/xautolock: always run systemctl of the currently running systemd 2020-05-21 10:33:37 +02:00
xbanish.nix
xfs.conf
xfs.nix
xserver.nix nixos/xserver: make logFile configurable 2020-12-13 06:15:33 +01:00