mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
Complete overhaul
This commit is contained in:
commit
d30d11566d
38 changed files with 1373 additions and 0 deletions
29
modules/system/x-input.nix
Normal file
29
modules/system/x-input.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue