git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/xserver: Move the keyboard configuration to 00-keyboard.conf

localectl looks for keyboard settings in /X11/xorg.conf.d/00-keyboard.conf Closes: #29959, #14318

commit1d868aa8de4547744135ad3e67d2e38e2952c8bf authorJan Tojnar <jtojnar@gmail.com> dateThu 30 Nov 2017, 14:10 (9 years ago) parent4cbbecc
1 file changed+16−9
nixos/modules/services/x11/xserver.nix+16−9
nixos/modules/services/x11/xserver.nix+16−9
@@ -578,6 +578,22 @@ in
578578 target = "X11/xkb";
579579 }
580580 ])
581+ # localectl looks into 00-keyboard.conf
582+ ++ [
583+ {
584+ text = ''
585+ Section "InputClass"
586+ Identifier "Keyboard catchall"
587+ MatchIsKeyboard "on"
588+ Option "XkbModel" "${cfg.xkbModel}"
589+ Option "XkbLayout" "${cfg.layout}"
590+ Option "XkbOptions" "${cfg.xkbOptions}"
591+ Option "XkbVariant" "${cfg.xkbVariant}"
592+ EndSection
593+ '';
594+ target = "X11/xorg.conf.d/00-keyboard.conf";
595+ }
596+ ]
581597 # Needed since 1.18; see https://bugs.freedesktop.org/show_bug.cgi?id=89023#c5
582598 ++ (let cfgPath = "/X11/xorg.conf.d/10-evdev.conf"; in
583599 [{
@@ -697,15 +713,6 @@ in
697713 ${cfg.monitorSection}
698714 EndSection
699715
700− Section "InputClass"
701− Identifier "Keyboard catchall"
702− MatchIsKeyboard "on"
703− Option "XkbModel" "${cfg.xkbModel}"
704− Option "XkbLayout" "${cfg.layout}"
705− Option "XkbOptions" "${cfg.xkbOptions}"
706− Option "XkbVariant" "${cfg.xkbVariant}"
707− EndSection
708−
709716 # Additional "InputClass" sections
710717 ${flip concatMapStrings cfg.inputClassSections (inputClassSection: ''
711718 Section "InputClass"