Move input configuration for x11 into the DE config

This commit is contained in:
SebastianStork 2024-04-05 22:44:46 +02:00
parent c1009efa0e
commit 9a00e77cce
2 changed files with 20 additions and 33 deletions

View file

@ -12,9 +12,27 @@
windowManager.qtile.enable = true; windowManager.qtile.enable = true;
desktopManager.wallpaper.mode = "fill"; desktopManager.wallpaper.mode = "fill";
xkb = {
layout = "de";
variant = "nodeadkeys";
}; };
myConfig.x-input.enable = true; libinput = {
enable = true;
touchpad = {
accelProfile = "adaptive";
naturalScrolling = true;
disableWhileTyping = true;
};
mouse = {
accelProfile = "flat";
middleEmulation = false;
};
};
};
xdg.portal = { xdg.portal = {
enable = true; enable = true;

View file

@ -1,31 +0,0 @@
{
config,
lib,
...
}: {
options.myConfig.x-input.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.x-input.enable {
services.xserver = {
xkb = {
layout = "de";
variant = "nodeadkeys";
};
libinput = {
enable = true;
touchpad = {
accelProfile = "adaptive";
naturalScrolling = true;
disableWhileTyping = true;
};
mouse = {
accelProfile = "flat";
middleEmulation = false;
};
};
};
};
}