Skip to content
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

Don't hijack pkgs in the nixos config #1422

Merged
merged 1 commit into from Feb 3, 2021

Conversation

thufschmitt
Copy link
Member

@thufschmitt thufschmitt commented Dec 2, 2020

Don't pass pkgs to evalConfig as

  1. This prevents most nixpkgs.* option from working
  2. This doesn't add any encapsulation guaranty as by default NixOS gets nixpkgs from the path of the toplevel module − which is the same as what NixOps does (see https://github.com/NixOS/nixpkgs/blob/4d43de3/nixos/modules/misc/nixpkgs.nix#L58-L60)

Hopefully fixes #1389 and #1418

@aaronjanse
Copy link
Member

I can confirm that this PR allowed me to deploy nixops to an aarch64 Raspberry Pi 4

Don't pass `pkgs` to `evalConfig` as
1. This prevents most `nixpkgs.*` option from working
2. This doesn't add any encapsulation guaranty as by default NixOS gets nixpkgs from the path of the toplevel module which is what NixOps does (see https://github.com/NixOS/nixpkgs/blob/4d43de3/nixos/modules/misc/nixpkgs.nix#L58-L60)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NixOps machines can no longer use nixpkgs options or specify overlays after #1369
3 participants