* Prevent tests from accessing the host's network accidentally. For

instance, `nixos-rebuild' in the installer test does a `nix-pull'
  from nixos.org.

svn path=/nixos/branches/boot-order/; revision=22325
This commit is contained in:
Eelco Dolstra 2010-06-18 13:21:01 +00:00
parent a65b5ec81c
commit ac22e5369f

View File

@ -80,6 +80,10 @@ in
# serial port).
services.syslogd.extraConfig = "*.*,kern.none /dev/ttyS0";
# Prevent tests from accessing the Internet.
networking.defaultGateway = mkOverride 50 {} "";
networking.nameservers = mkOverride 50 {} [ ];
};
}