this post was submitted on 23 May 2025
5 points (100.0% liked)

Nix / NixOS

2266 readers
1 users here now

Main links

Videos

founded 2 years ago
MODERATORS
 

Whenever I run any command line tools without sudo, they take the settings as in ~/.config and work fine. But whenever I run the same CLI tools with same parameters but with sudo, it falls back to default setting. How can I make this behavior consistent?

you are viewing a single comment's thread
view the rest of the comments
[–] toyvo@programming.dev 6 points 2 weeks ago

Generally define the same config options for the root user in /root/.config