Generally define the same config options for the root user in /root/.config
this post was submitted on 23 May 2025
5 points (100.0% liked)
Nix / NixOS
2310 readers
1 users here now
Main links
Videos
founded 2 years ago
MODERATORS
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.