nix-config/common/pc/touchpad.nix
Zuckerberg 588e94dcf4
All checks were successful
Check Flake / check-flake (push) Successful in 1m11s
Update to NixOS 24.05
2024-06-02 21:12:07 -06:00

16 lines
282 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.libinput.enable = true;
services.libinput.touchpad.naturalScrolling = true;
};
}