-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Get system from pkgs.stdenv.hostPlatform... #37
Conversation
...instead of config.nixpkgs. error: Neither nixpkgs.system nor any other option in nixpkgs.* is meant to be read by modules and configurations. Use pkgs.stdenv.hostPlatform instead.
what version of nixpkgs are you using? 🤔 |
nixos-unstable, resolved to NixOS/nixpkgs@b98a4e1 at last lock. |
I don't understand how we have not yet run into this error, either in the NixOS test or when deploying etna.typhon-ci.org (which is coincidently down for unrelated reasons). The situation is pretty clear when reading the error message which was introduced in NixOS/nixpkgs@acd969a, so this looks like a necessary patch. Still, I would really like to understand how on earth I am unable to reproduce the error! |
Running a bit short on time atm, but my first guess would be that it could be related to how |
@pnmadelaine So, it should be reproducible if you call Reproducer
|
Right, I always call Anyway thank you for the patch! I will merge it as soon as our CI is back online 😄 |
My motivation for doing so, is that I can use the same lib.nixosSystem call for all hosts and just pass a set of modules into it. My host-specific configuration is just another module, where one of them defines the host platform (i have both, x86_64-linux and aarch64-linux machines in .#nixosConfigurations. |
...instead of config.nixpkgs.
Without this, I encountered the following error while evaluating a host that includes typhons nixOS module.