I have been remapping caps lock to escape since starting nixos, and it has always worked.
Now I updated nixpkgs and suddenly caps lock is caps lock. I found nothing in here nor in the nixpkgs issues.
Current nixpkgs rev: b024ced1aac25639f8ca8fdfc2f8c4fbd66c48ef
Updated nixpkgs rev: adaa24fbf46737f3f1b5497bf64bae750f82942e
This is the configuration I have been using:
services.xserver.xkb = {
layout = "us";
model = "pc104";
options = "caps:escape";
variant = "altgr-intl";
};
I have always been on GNOME.