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
-home-manager-generation/activate: line 67: nix-build: command not found #2178
Comments
This PR fixes the issue I was seeing, but I don't really feel like its the right fix: #2179 maybe someone who can understand a bit better what is going on can come up with a better fix. |
Thanks for the report. I believe it should be safe to add the system's Nix package to the activation script PATH. Please give PR #2202 a try. |
@rycee I'm running into this too on darwin, trying to switch my flake configuration to incorporate home-manager. Notably, the flake works on nixos, just not on mac. I'm still rather new to home-manager so I don't quite have a simple repro, but I can confirm that I've taken working "basic" flake configs for darwin that are confirmed to work on other people's machines and hitting it here, leading me to believe that it's either something that was funny in the circa-November-2021 Mac installer, or something I configured wrong on my path. Either way, I'd love to know what I can provide or look into to help further pin down the issue. |
The fix for nix-community#2178 did not apply the patch to nix-darwin too. See: nix-community#2178 (comment)
Hi @willcohen, I have been using the fix in #2695 for awhile now and forgot to upstream it. |
The fix for #2178 did not apply the patch to nix-darwin too. See: #2178 (comment) (cherry picked from commit 1fa809f)
I'm getting the error nix-build: command not found, when trying to set up home-manager with nix-flakes for the first time.
It seems that nix-build is only unavailable when this service is started because the service definition sets path explicitly such that it does not include the path that nix-build is on. I'm not totally sure what is going on but i think that the environment might be coming from here:
home-manager/nixos/default.nix
Line 129 in 775cb20
Seems like maybe the remedy should be to explicitly add nix as a dependency?
Here is the whole file
The text was updated successfully, but these errors were encountered: