mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 05:13:10 +01:00
19 lines
614 B
Nix
19 lines
614 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
environment.systemPackages = with pkgs; [
|
|
xorg.xmodmap
|
|
];
|
|
# Configure keymap in X11
|
|
services.xserver.layout = "us";
|
|
services.xserver.xkbVariant = "dvorak-alt-intl";
|
|
services.xserver.displayManager.sessionCommands =
|
|
"${pkgs.xorg.xmodmap}/bin/xmodmap ${pkgs.writeText "xkb-layout" ''
|
|
keycode 108 = Mode_switch
|
|
keycode 94 = Shift_L NoSymbol Shift_L
|
|
keysym a = a A adiaeresis Adiaeresis
|
|
keysym o = o O odiaeresis Odiaeresis
|
|
keysym u = u U udiaeresis Udiaeresis
|
|
keysym s = s S ssharp
|
|
''}";
|
|
}
|