hi guys, i’m kinda new here and everyone recommend me to use home-manager but i still confuse to figuring out of myself, any kinda solid one tutorial that maybe i can understand or maybe like smth plug and play?
Probably best to start with the installation instructions. Maybe also think about what you even want to achieve with home-manager at this point.
Apart from that, it is a bit hard to give guidance without knowing what you are trying to achieve in particular - standalone / NixOS submodule? Channels / Flakes?
Anyways, here is a minimal stub for flake based submodule:
{
[...]
inputs = {
[...]
home-manager = {
url = github:nix-community/home-manager;
inputs.nixpkgs.follows = "nixpkgs";
};
[...]
outputs = [...]
nixosConfigurations = {
<name> = nixpkgs.lib.nixosSystem {
specialArgs = {inherit self inputs outputs; }; # recommended, not needed
modules = [
./path/to/nixos/config.nix
home-manager.nixosModules.home-manager
{
home-manager.users.<username>.imports = [
./path/to/home/config.nix
];
}
];
};
};
[...]
}
Have you seen the home manager manual?
Assuming you know how to use Nix, it’s a pretty straightforward manual.