Simplify console keyboard config by using Xkb config
Alan Pearce alan@alanpearce.eu
Fri, 04 Oct 2019 19:45:25 +0200
2 files changed, 3 insertions(+), 8 deletions(-)
M system/modules/hardware/qwerty.nix → system/modules/hardware/qwerty.nix
@@ -1,13 +1,6 @@ { config, pkgs, ... }: -{ services.kmscon = { - extraConfig = '' - xkb-model=pc104 - xkb-layout=us - xkb-variant=intl-unicode - xkb-options="altwin:prtsc_rwin" - ''; - }; +{ services.xserver = { layout = "us"; xkbVariant = "intl-unicode";
M system/modules/services/xserver.nix → system/modules/services/xserver.nix
@@ -6,6 +6,8 @@ enableCtrlAltBackspace = true; exportConfiguration = true; }; + i18n.consoleUseXkbConfig = true; + environment.systemPackages = with pkgs; [ xorg.xmodmap xorg.xinit