I am trying to learn how to use nixops. I am testing the 1.7 manual description, slightly modified.
{
network.description = "valgrind documentation";
valdoc =
{ config, pkgs, ... }:
{
services.httpd.enable = true;
services.httpd.adminAddr = "alice@example.org";
#services.httpd.documentRoot = "${pkgs.valgrind.doc}/share/doc/valgrind/html";
services.httpd.virtualHosts."valgrind-docs" = {
documentRoot = "${pkgs.valgrind.doc}/share/doc/valgrind/html";
};
networking.firewall.allowedTCPPorts = [ 80 ];
};
}
Is opening of tcp port 80, also necessary on my host? Or will nixops take care of that?
Also, it seems I am able to reach the webserver from host machine directly, but if I try from another machine, I am not able to reach it (I have opened port 80 also on the host). Do I need to configure the vbox network in addition to nixops?
Last question, am I able to deploy a vm on a different machine using nixops? leaving the host machine for that vm, not knowing about anything related to nixops?