all repos — nixfiles @ 88937aa1a2eaad74946fe3eaf3ea5d2ff51ab027

System and user configuration, managed by nix and home-manager

Simplify console keyboard config by using Xkb config
Alan Pearce alan@alanpearce.eu
Fri, 04 Oct 2019 19:45:25 +0200
commit

88937aa1a2eaad74946fe3eaf3ea5d2ff51ab027

parent

9ad3e8ffd82fd8d681be90dea70e5c0c643afa65

2 files changed, 3 insertions(+), 8 deletions(-)

jump to
M system/modules/hardware/qwerty.nixsystem/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.nixsystem/modules/services/xserver.nix
@@ -6,6 +6,8 @@ enableCtrlAltBackspace = true;     exportConfiguration = true;
   };
 
+  i18n.consoleUseXkbConfig = true;
+
   environment.systemPackages = with pkgs; [
     xorg.xmodmap
     xorg.xinit