On a single-user system I have a configuration.nix and myuser.nix which is imported to configuration.nix.
I read a lot about Home Manager, and I am wondering if I am missing something by not using it. It seems like I can manage everything using traditional .configs and myuser.nix. Would Home Manager make life easier for me somehow?
If you have another machine, without NixOS (in my case a Fedora from my employer), you could share the same settings for your user.
If you are not using NixOS and using some home growth solution to do the same thing that HomeManager does, except for the joy to keep your project, there are less burden by leveraging someone else work
So I am assuming that your myuser.nix contains basic user settings provided by nixos under users.users.<your-username>*. Other than what’s provided there, NixOS does nothing to manage your user home folder for things like your user shell rc file, etc.
If you want to declaratively manage your user directory (xdg directories, config files, etc) the same way you declaratively manage your NixOS system, then home-manager is your friend.
Thanks a lot. I am using NixOS. I have a lot of Linux experience, but am pretty new to NixOS. I might be misunderstanding your second point, but since I haven’t used home manager yet, I doubt anything currently depends on modules from home manager.
So I guess I’ll move past Home Manager and start coming to grips with flakes.
Some - not all - options have similar counterparts on NixOS, but again, the NixOS options are system-wide. You probably don’t want your bashrc to apply system-wide, as it’s in charge of setting up your user configuration. Not as bad on single-user computers, but your root account and other random system users will be affected.