-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,31 @@ | ||
{ config, lib, ... }: | ||
with lib; | ||
{ | ||
config = mkMerge [ | ||
(mkIf config.services.xserver.enable { | ||
console.useXkbConfig = true; | ||
services.xserver = { | ||
autorun = mkDefault true; | ||
autoRepeatDelay = 440; # default: 660ms | ||
autoRepeatInterval = 30; # default: 25Hz | ||
# xkb directory (and the xorg.conf file) gets exported to /etc/X11/xkb, which is useful if you have to often look stuff up in it. | ||
exportConfiguration = mkDefault true; | ||
xkb.layout = "us"; | ||
xkb.options = concatStringsSep "," [ | ||
"ctrl:nocaps" | ||
]; | ||
# Whether to enable the DontZap option, which binds Ctrl+Alt+Backspace | ||
# to forcefully kill X. This can lead to data loss and is disabled by default. | ||
enableCtrlAltBackspace = mkDefault false; | ||
}; | ||
}) | ||
(mkIf config.services.libinput.enable { | ||
services.libinput.touchpad = { | ||
accelProfile = "adaptive"; | ||
buttonMapping = "1 3 2"; | ||
disableWhileTyping = true; | ||
horizontalScrolling = false; | ||
naturalScrolling = true; | ||
scrollMethod = "twofinger"; | ||
tapping = false; | ||
tappingDragLock = true; | ||
}; | ||
}) | ||
]; | ||
config = mkIf config.services.xserver.enable { | ||
console.useXkbConfig = true; | ||
services.xserver = { | ||
autorun = mkDefault true; | ||
autoRepeatDelay = 440; # default: 660ms | ||
autoRepeatInterval = 30; # default: 25Hz | ||
# xkb directory (and the xorg.conf file) gets exported to /etc/X11/xkb, which is useful if you have to often look stuff up in it. | ||
exportConfiguration = mkDefault true; | ||
xkb.layout = "us"; | ||
xkb.options = concatStringsSep "," [ | ||
"ctrl:nocaps" | ||
]; | ||
# Whether to enable the DontZap option, which binds Ctrl+Alt+Backspace | ||
# to forcefully kill X. This can lead to data loss and is disabled by default. | ||
enableCtrlAltBackspace = mkDefault false; | ||
}; | ||
services.libinput.touchpad = { | ||
accelProfile = "flat"; | ||
buttonMapping = "1 3 2"; | ||
disableWhileTyping = true; | ||
horizontalScrolling = false; | ||
naturalScrolling = true; | ||
scrollMethod = "twofinger"; | ||
tapping = false; | ||
tappingDragLock = true; | ||
}; | ||
}; | ||
} |