ryan4yin / nixos-and-flakes-book

:hammer_and_wrench: :heart: Want to know NixOS & Flakes in detail? Looking for a beginner-friendly tutorial? Then you've come to the right place! 想要学习使用 NixOS 与 Flakes 吗?在寻找一份新手友好的教程?那你可来对地方了!

Home Page:https://nixos-and-flakes.thiscute.world

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Command slightly wrong

Biepa opened this issue · comments

On https://nixos-and-flakes.thiscute.world/nixos-with-flakes/start-using-home-manager

There is the part:
"Then run sudo nixos-rebuild switch to apply the configuration, and home-manager will be installed automatically."

I went trough it twice and it did not work for me, but "sudo nixos-rebuild switch --flake /etc/nixos#nixos-test" did.

Obviously I'm a beginner with NixOs, so let me know if I missed anything.

Same for me. I found the "standalone install guide" on HomeManager's doc

nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update
nix-shell '<home-manager>' -A install

to get my home-manager executable usable.

Seems like this way is not that flake-y, still waiting for a more flake-y solution.

Fixed by 4f60d3c

to get my home-manager executable usable. -- @nykma

The home-manager executable is not necessary, nixos-rebuild is all you need.