-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
01 home-manager install missing additional setup on multi-user install on foreign distro. #2
Comments
Mentioned this in the nixos discourse forums as well, but for visibility repeating: I'm a little wary of adding too much troubleshooting to the guide itself. I'd rather leave that to the docs with the tools, because everyone's going to have a different specific setup. I'd actually like to leave this issue open as something others can reference, to act as a troubleshooting supplement. |
@brisk-pm I ran into the same issue. I believe the issue is that the The I believe the other way around this, and I think is probably the correct way if someone wants to do this declaratively, is by making sure
All that being said, thanks for a fantastic to-the-point guide @Evertras! |
Ah, I see we can make I like the generic way of bootstrapping home-manager with Tested on a fresh NixOS install. I really appreciate this guide's encapsulation of home-manager in a flake. Its portable between foreign distros and NixOS. |
I think there's some merit to having home manager bootstrap itself, but I'd also be wary. If you accidentally delete home manager from the list (for example, forgetting to include a module that lists it while refactoring things), then you're going to get into weird states of trying to restore it. Successfully setting up the standalone version makes this much less of a hassle. Because of that I'd rather not put that directly in the guide, but I'm happy to have this issue open as discussion for others to see as other options. |
Since you have flakes enabled, you don't actually need to install home-manager to use it, you can simply This simplifies the installation steps quite a bit. |
Excellent guide. But I'm stuck in the exact same way. After running make for the first time home-manager is no longer found. How is it meant to work in non-NixOS environments? I can see "home-manager-path" as an installed package. I'm also stuck because I don't actually know how to deactivate my profile to even add "home-manager" to my packages list (if I have to solve this the less correct way). |
I actually use @bj0 's solution in my personal setup, I may add that to the guide officially at this point as this seems to be a painful bit. |
Fantastic. Yes I think that is a good solution. Or at least as a completely new user it is useful to realise that arbitrary commands can be run like that. I ended up adding |
Ran into this issue too, I got
after the first switch. After reading https://nix-community.github.io/home-manager/ I found that you can simply do:
|
I'm also stuck on this same step. After running make the first time, |
I think the most recent comment that shows how to enable home manager should work. |
The instructions linked to install home-manager
point the user to install home-manager with
nix-shell '<home-manager>' -A install
In order to progress I had to add a nixpkgs channel and update the $NIX_PATH in my environment:
Also using the nix-shell install method wiped the home-manager path after the first make command that runs home-manager switch.
I was able to get home-manager persistently available with
nix profile install home-manager
. I'm not sure if this my unfamiliarity with nix or if the instructions are unclear for a multi-user nix install on a foreign distro.The text was updated successfully, but these errors were encountered: