Open ocharles opened 10 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.
Currently, when one runs
nixops deploy
, those machines that are configured to run withtargetEnv = "virtualbox"
are built and run on the machine runningnixops
. 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.