In ubuntu I could place something like
How do I do this in nixos?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
The same thing should work in nixos, although variables such as
EDITOR should probably go in
.bashrc is IIRC only sourced for interactive shells so variables exported there won't be available in programs started from your desktop environment menu.
You could also set
environment.variables.VARIABLE = "VALUE"; in
configuration.nix but not really appropriate for personal variables such as
EDITOR. (ofc. if you're the only user it doesn't really matter that much)