So far I like what I see in NixOS, however, since I’ve been using I didn’t find how to change my keyboard layout to allow accents. I’m from Brazil, but my laptop is from US, and it has accents, e.g:
e + Alt + 6 (^) = ê
e + e = é
I’ve been looking all around, including the official documentation. So far, no lucky. I’ve also played with the following variables:
That’s exactly the layout I used in my Arch, but when I define in NisOX, it doesn’t change anything. Do I have to run anything besides sudo nixos-rebuild switch? Sorry if this is obvious. I’m still going through the docs.
As you are using Gnome, it might be that it has its own means of configuration for the keyboard and many other things, it might ignore what you set through X.
Can you run setxkbmap -query before and after setxkbmap us altgr-intl?
Does it change anything? Is perhaps the layout and variant properly set, but Gnome ignores them? In that case you might need to change it manually for Gnome.
There are things that nix can not change after the fact, this is usually the fault of the program not rereading config files or not reading events properly, or simply not adjusting internal state accordingly.
Especially DEs usually assume that everything is under their controll, and therefore refuse to adhere to external impulses/changes.
what I used before switching to i3, was configuring things as I liked it by hand, and then run: https://github.com/gvolpe/dconf2nix to generate the dconf configuration automatically. Then home-manager loads it into dconf (the configuration engine of Gnome)
This is my NixOS configuration back then, the keyboard is just doing this: