Home-manager from nix packages

Hi there,

I installed home-manager through the nixos packages.
Installation and configuration throught the config file works fine, also a initial switch.

After trying to home-manager switch, there appears an error:
error: file 'home-manager/home-manager/home-manager.nix' was not found in the Nix search path (add it using $NIX_PATH or -I)

is it the correct way to do this through the terminal instead of a declerative config file?
For me as a nixos beginner seems this a little bit strange :frowning:

The folder structure is also a little bit different from the one in the docu:
actual: ~/.config/home-manager/home.nix
docu: ~/.config/nixpkgs/home.nix

configuration.nix:
environment.systemPackages = with pkgs; [
home-manager
]

Thanks again for help :smiley:

Hello
You can’t just put home-manager in your packages. This will not work.
I recommend you read the wiki:
https://nixos.wiki/wiki/Home_Manager
The video series from Vimjoyer is also a great source. He explains how to install Home-Manager and us it very good:

Just watch the Home-Manager Video.