Weirdness on keyboard layouts after docking

Hi :wave:

I have the following config:

  services.xserver = {
    enable = true;
    layout = "tr";
    xkbVariant = ""; < this line was not here before, I added it to test, but it also didn't work

Problem 1: Whenever I dock my laptop, the keyboard layout changes the variant. Here is what it’s supposed to be (and how it is after non-docked boot):

~> setxkbmap -query
rules:      evdev
model:      pc104
layout:     tr

Here is how it is after docking:

~> setxkbmap -query
rules:      evdev
model:      pc104
layout:     tr
variant:    intl
options:    terminate:ctrl_alt_bksp

Problem 2: When I un-dock the laptop, I see this:

~> setxkbmap -query
rules:      evdev
model:      pc101
layout:     us
variant:    intl
options:    terminate:ctrl_alt_bksp

But that is wrong, the layout is actually completely OK, no-variant TR. wut :question:

Now I have to run setxkbmap tr every time after docking.
Could you give any hints that I can have a stable non-varianted keyboard layout? :eyes:

Thanks.

What laptop/dock are you using?

Dell XPS 13 with Dell wd19tb dock. There is an attached external keyboard as usual.