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.82k stars 363 forks source link

Virtualbox: Support creating virtual machines on other hosts #154

Open ocharles opened 10 years ago

ocharles commented 10 years ago

Currently, when one runs nixops deploy, those machines that are configured to run with targetEnv = "virtualbox" are built and run on the machine running nixops. It would be nice if we could specify the machine that will be the virtual machine host.

A concrete use case came up for this at my job. I am building a web service, and have created an expression to build binaries, an expression for a NixOS module, and now I want to deploy this so that my colleagues can test my work. I want to deploy using nixops because I know it works well, but I don't want to deploy onto my laptop, because that creates a bottleneck of me needing to be in the office. It would be preferable if I could deploy into a virtual machine that will run on our office server.

rbvermaa commented 9 years ago

I believe the nixops container backend might give you what you need, assuming you do not mind giving up on virtualbox. For an example, see f7f11c296adb0d44583cfe50af94ea22f4de074e . I believe you will need to be on Nixpkgs master to run this though.