@@ -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"