mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
Move input configuration for x11 into the DE config
This commit is contained in:
parent
c1009efa0e
commit
9a00e77cce
2 changed files with 20 additions and 33 deletions
|
|
@ -12,9 +12,27 @@
|
||||||
|
|
||||||
windowManager.qtile.enable = true;
|
windowManager.qtile.enable = true;
|
||||||
desktopManager.wallpaper.mode = "fill";
|
desktopManager.wallpaper.mode = "fill";
|
||||||
};
|
|
||||||
|
|
||||||
myConfig.x-input.enable = true;
|
xkb = {
|
||||||
|
layout = "de";
|
||||||
|
variant = "nodeadkeys";
|
||||||
|
};
|
||||||
|
|
||||||
|
libinput = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
touchpad = {
|
||||||
|
accelProfile = "adaptive";
|
||||||
|
naturalScrolling = true;
|
||||||
|
disableWhileTyping = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
mouse = {
|
||||||
|
accelProfile = "flat";
|
||||||
|
middleEmulation = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue