Nixos locale trouble with LANG=en_IN
Last Modified on January 6, 2026While setting up a minimal tiling
window manager stack on NixOS — dwm
and dmenu — I ran into a
locale bug.
dmenu simply
refuses to work citing unsupported locale
because the LANG environment variable
in my NixOS system ends up as en_IN
instead of en_IN.UTF-8,
It only works if I manually correct
the environment using
things like LANG=en_IN.UTF-8.
Display managers and session startup
do not reliably inherit such a fix.
None of my attempts to modify
configuration.nix to correct this
bore any fruit.
I believe the root issue is described at
Github issue #256688 on NixOS/nixpkgs
After spending much of my time fighting
locale propagation rather than configuring
keybindings or layouts, I gave up.
Instead of dwm, and dmenu,
I settled for
Forge tiling extension in GNOME.
It works satisfactorily.