mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-22 00:21:34 +01:00
29 lines
641 B
Nix
29 lines
641 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
options.myConfig.x-input.enable = lib.mkEnableOption "";
|
|
|
|
config = lib.mkIf config.myConfig.x-input.enable {
|
|
services.xserver = {
|
|
enable = true;
|
|
xkb = {
|
|
layout = "de";
|
|
variant = "nodeadkeys";
|
|
};
|
|
|
|
libinput = {
|
|
enable = true;
|
|
|
|
touchpad = {
|
|
accelProfile = "adaptive";
|
|
naturalScrolling = true;
|
|
disableWhileTyping = true;
|
|
};
|
|
|
|
mouse.accelProfile = "flat";
|
|
};
|
|
};
|
|
};
|
|
}
|