5
Sudo doesnt retain settings of ~/.config
(lemm.ee)
Generally define the same config options for the root user in /root/.config
I run commands as the root user so I use the root users configs. Usually that's in /root/.config/ but it might be different in NixOS.
You'll have to either copy your configs over to the root users config dirs. I highly recommend auditing what you copy though for security.