Need Help xkbOptions is not working

Hello im trying to swap my escape key with my caps key using:
xkbOptions = “terminate:ctrl_alt_bksp,caps:swapescape”;

but it is not working. im not using gnome or dconf.
setxkbmap -query gives me:
rules: evdev
model: pc104
layout: us

if i run cat /etc/X11/xorg.conf.d/00-keyboard.conf i get:
Section “InputClass”
Identifier “Keyboard catchall”
MatchIsKeyboard “on”
Option “XkbModel” “pc104”
Option “XkbLayout” “us”
Option “XkbOptions” “terminate:ctrl_alt_bksp,caps:swapescape”
Option “XkbVariant” “”

if i run setxkbmap -option caps:swapescape it works.
I dont know maybe this has somethind todo with home-manager i have this in my home.nix
xsession = {
enable = true;
initExtra = ‘’
${pkgs.feh}/bin/feh --bg-max ${theme.background}
windowManager.i3 = {
enable = true;
package = pkgs.i3-gaps;
} // configs.i3;

i cant find a solution maybe somebody can help me.
Thank you already for taking the time to read my post.

With stateVersion < 19.09, home-manager manages your keyboard for you. Either set home.keyboard to null or update your stateVersion.

1 Like

Thank you very much !