2022-12-19 19:30:32 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
2022-12-19 19:38:23 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
xorg.xmodmap
|
|
|
|
];
|
2022-12-19 19:30:32 +01:00
|
|
|
# Configure keymap in X11
|
|
|
|
services.xserver.layout = "us";
|
|
|
|
services.xserver.xkbVariant = "dvorak-alt-intl";
|
2023-01-20 10:46:28 +01:00
|
|
|
|
|
|
|
# Port this to wayland TODO. doesn't even work with gdm lmao
|
|
|
|
#services.xserver.displayManager.setupCommands =
|
|
|
|
#"${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
|
|
|
|
#''}";
|
2022-12-19 19:30:32 +01:00
|
|
|
}
|