I use GNOME on NixOS, and I noticed that environment variables, like EDITOR, set by the NixOS option environment.variables are present in my session’s environment. Is there a way to override these variables via user configuration?
I have tried these things:
systemd environment.d in ~/.config/environment.d/
This issue seems relevant and has some workarounds, but I’m wondering if there is an official way.