Hello,
I’m following the instructions from the Custom XKB layouts chapter of the manual.
I’m using a xkb_symbols definition that I’ve made based on an existing one (“eu” aka EurKEY). It works fine when I try it with
setxkbmap -I/etc/nixos/xkb_layouts eurcode | xkbcomp -I/etc/nixos/xkb_layouts - $DISPLAY
or simply
setxkbmap eurcode
but I’m not succeeding to get the layout set at startup.
My configuration:
services = {
xserver = {
enable = true;
displayManager= {
sddm.enable = true;
};
desktopManager.plasma5.enable = true;
layout = "eurcode";
extraLayouts.eurcode = {
description = "eurcode";
languages = [ "eng" ];
symbolsFile = /etc/nixos/xkb_layouts/symbols/eurcode;
};
};
};
I’ve tried putting a few variations of setxkbmap in services.xserver.displayManager.sessionCommands, but the outcome is the same.
I’m using NixOS 21.11.337040.a62ce97f92b (Porcupine).
Any idea why it’s not working or what I could try to troubleshoot?