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 365 forks source link

update the automatic build machine functions under darwin #984

Open cleverca22 opened 6 years ago

cleverca22 commented 6 years ago

https://github.com/NixOS/nixops/blob/579070b458c64672d88b8d3f762e831bf4e6a9e0/nixops/deployment.py#L626-L644

back when nix was in single-user mode on darwin, this code would automatically use the newly made machines as build machines to build nixos multi-user nix has since broken that but if you are listed as a trusted user in nix.conf, you can now use --option builders ... to do the same thing, nixops will need an update to take advantage of that

cleverca22 commented 5 years ago
2019-04-28 08:13:56 < sphalerite> can I get nixops to build the system configurations on the target machines?
2019-04-28 08:20:22 < clever> sphalerite: mac source machine?
2019-04-28 08:20:51 < sphalerite> clever: no, x86_64 source machine and aarch64-linux target machine which I don't want to use as a remote builder

when this code is fixed, it could also be adapted to just compare the host and target arch then when deploying from x86->arm, it would do the same magic darwin->linux used to do