libkookie: xkblayout: init configuration

wip/yesman
Katharina Fey 3 years ago
parent 606c9d9d1b
commit e7fceae6de
  1. 32
      infra/libkookie/configuration/workstation/xkblayout/default.nix
  2. 2
      infra/libkookie/roots/tempest.nix

@ -0,0 +1,32 @@
/* KEYBOARD LAYOUT MODULE
*
* (INCOMPLETE) Setup keyboard layout
* and overrides. Currently this is
* mostly handled by GRAPHICS/I3 but
* should maybe be moved here?
*/
{ pkgs, config, ... }:
{
console.useXkbConfig = true;
services.xserver = {
layout = "us";
xkbVariant = "altgr-intl";
xkbOptions = "caps:hyper";
# We want to set this layout modification as a per-device setting
# to avoid interpreting hardware keyboards with the same
# layout, which would otherwise lead to "double dvorak".
extraConfig = ''
Section "InputClass"
Identifier "Internal Keyboard"
MatchIsKeyboard "yes"
MatchProduct "AT Translated Set 2 keyboard"
Option "XkbLayout" "dvorak"
Option "XkbVariant" "altgr-intl"
Option "XkbOptions" "caps:hyper"
EndSection
'';
};
}

@ -31,6 +31,8 @@ in
#
<configuration/workstation/fonts>
<configuration/workstation/xkblayout>
#################################################################
# home-manager modules that exist entirely in userspace

Loading…
Cancel
Save