Hi Maxim, It doesn't work. The keyboard remains irrevocably in English.
Even if the solution proposed by chatgpt doesn't work, the keyboard remains permanently in English. The majority of users are excluded.
The working solution involves copying the kernel and initrd directly into /boot and modifying /boot/grub.cfg accordingly. However, this must be done every time the system reconfigures. Furthermore, this goes against the GUIX architecture.
cp /gnu/store/1x0dsnyikvk5mw14bnisz875y40dajr0-grub-keymap.fr /boot/grub/keymap.fr
/boot/grub/grub.cfg Before insmod procfs insmod luks insmod luks2 cryptomount -u changeme cryptomount -u changeme ... set locale_dir=/@gnu/store/xi0dg3fyi9s7yj3408gnk627plnid0wz-grub-locales set lang=fr_FR insmod keylayouts keymap /@gnu/store/1x0dsnyikvk5mw14bnisz875y40dajr0-grub-keymap.fr After insmod procfs insmod keylayouts keymap /grub/keymap.fr insmod luks insmod luks2 cryptomount -u changeme cryptomount -u changeme ... set locale_dir=/@gnu/store/xi0dg3fyi9s7yj3408gnk627plnid0wz-grub-locales set lang=fr_FR insmod keylayouts keymap /@gnu/store/1x0dsnyikvk5mw14bnisz875y40dajr0-grub-keymap.fr Thanks, Mathieu Le 26/05/2026 à 09:25, Maxim Cournoyer a écrit :
Hi Mathieu, Could you test your hypothesis by manually editing (as root) your /boot/grub/grub.cfg file and rebooting? And where is your keymap located? If it's in your encrypted root file system, that would be another reason why GRUB has to prompt for your LUKS passphrase before your keymap can be loaded. On my system: $ grep -i key /boot/grub/grub.cfg insmod keylayouts keymap /@root/gnu/store/xl5j57iif0smly7667nb9k7kl8l7814i-grub-keymap.us
