I havent used nixos much but I dont understand why people use home manager instead of just the configuration.nix.
Is the only reason using it to not have system wide package installed? Does it have other usecases too?
Home manager also has a module for most popular software so you can directly configure them in nix, like
programs.yazi = { enable = true;
config = { Some stuff };
Also stuff like enablefishintegration = true; };
Often more convenient than writing dotfiles and referring to them.
It does things the system nix cannot: manage your users config. I use it instead of a dotfile manager as it combines that with being able to install packages.
I have seen people sharing their home configuration on github. good usecase
I don’t have to use
sudo(and thus type in my password) when I want to install programs/modify app configs when I use home-manager bc it’s per-user. The system config modifies the entire system even if the only changes affect a single user, so will always require usingsudoto make the changesthat makes sense, thanks
You can use it in other Linux distros that has nix package support. Also user level isolation, and you know stuff you’re installing aren’t going to change something deep in the system.
My work laptop is Ubuntu, I can’t change the OS but I can have the exact same user packages and config across all of my systems with it.
My main PC uses Mint instead of NixOS. Likewise, when I was working those PCs used Mint/Ubuntu. It’s nice being able to have my config on those systems.




