Changes that do not appear in Nix config file

Hello i recently installed nix os and now i have the following trace warnings when rebuilding the config file

trace: warning: The option `services.xserver.xkbVariant' defined in `/etc/nixos/configuration.nix' has been renamed to `services.xserver.xkb.variant'.
trace: warning: The option `services.xserver.layout' defined in `/etc/nixos/configuration.nix' has been renamed to `services.xserver.xkb.layout'.

But i simply cant find any of it in my config file
not even the old names
image

any idea on how i could resolve it ?
i havent found anything online except for questions about what it is
i know what it is but i cant resolve it because its not in my config :frowning:

Welcome @Foxy1337 . It is useful if you can post the config, but just as a quick check up front, search for xkbVariant - the option may be in a more complex structure such as:

services.xserver = {
  xkbVariant = ???
}

Easy to miss when you are starting out.

2 Likes

Thank you so much
i feel a bit stupid now spend 3h searching xD
It fixed my problems

Glad it wasn’t something more complicated…

The “more complex” style makes it easier to organise and read I think, but harder to find the exact option sometimes when debugging…

1 Like

You can often use nixos-option to find where an option is set. But in this case, the warning message tells you exactly which file to look into.