NixOS / nixops

NixOps is a tool for deploying to NixOS machines in a network or cloud.
https://nixos.org/nixops
GNU Lesser General Public License v3.0
1.87k stars 364 forks source link

Don't hijack `pkgs` in the nixos config #1422

Closed thufschmitt closed 3 years ago

thufschmitt commented 4 years ago

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 commented 3 years ago

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