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
cannot look up '<nixpkgs>' in pure evaluation mode #30
Comments
Maybe my That way it tries to load nixpkgs is from:
|
You're not alone, I've spent a lot of time fighting this this morning... |
As mentioned in the referenced You can also run your flake command with |
I have resolved this in my config here. However, this is not an ideal solution as it must be applied on a per user basis. Unfortunately, updating Does anyone know of a simple way to define a default value for this for any give user? |
I think it's alright to add the newer state version to the NixOS demo user most people probably copy to create their user. As far as overriding the home manager module default state version... I'm not sure. |
After quite some time, this solved this issue for me:
I've set it in my user config for now, as that's where my home-manager config is, but it could also be set on a system level. |
The source for
Is that desirable? I'm having a hard time parsing those docs right now. |
@codygman, If I am understand correctly, this sidesteps the problem of importing nixpkgs entirely by simply using the Confusingly though, this still doesn't solve the problem when trying to build the iso with |
But then you aren't using the nixpkgs defined by flakes. I'm guessing most users want their system based on flake inputs and not the nixpkgs channel their system previously had. |
After following the code, I don't think thats what it's doing. I believe it is pulling in the |
Maybe you are right... couldn't we test which is the case by adding something to pkgs in flake.nix and trying to use it from the home manager module? Maybe I can get the time to try this later or a different test if someone suggests it. |
Okay, so after reviewing the code one more time, and after viewing home-managers own README.md's section on flakes, it states that both:
should be set when using flakes. It would be impossible for home-manager to use the previous generations nixpkgs, as that would also require it to pull something externally. I see that, when useGlobalPkgs is set, the nixpkgs module is skipped in home-manager and the NixOS I am gonna go ahead and merge the PR. I feel it is safe at this point, and I don't want to frustrate new users any more than we need to. |
Totally reasonable. Thanks for looking again, I just didn't want this template to get bad PR for subverting flakes or breaking any guarantees. As soon as I figure out how to migrate to flakes I plan on writing some documentation I hope will help others do the same more smoothly if I can squeeze out the time |
30: Create new option, importables, and properly deprecate profiles/suites r=Pacman99 a=Pacman99 I used this opportunity to make the changes from #29 backwards compatible. But if you use the old method of profiles creation, you get hit with various deprecation messages. One to explain the new format of `rakeLeaves` and the other to explain how to create `suites` and `profiles` in `importables`. Co-authored-by: Pacman99 <pachum99@myrdd.info>
Shouldn't everyone that uses this flake be getting this error? It seems like it's only me but that defeats the purpose of flakes having more hermetic builds right?
The text was updated successfully, but these errors were encountered: