15 lines
298 B
Nix
15 lines
298 B
Nix
{ lib, config, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.de.touchpad;
|
|
in {
|
|
options.de.touchpad = {
|
|
enable = lib.mkEnableOption "enable touchpad";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services.xserver.libinput.enable = true;
|
|
services.xserver.libinput.touchpad.naturalScrolling = true;
|
|
};
|
|
}
|