mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
* 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:
parent
a65b5ec81c
commit
ac22e5369f
1 changed files with 4 additions and 0 deletions
|
@ -80,6 +80,10 @@ in
|
||||||
# serial port).
|
# serial port).
|
||||||
services.syslogd.extraConfig = "*.*,kern.none /dev/ttyS0";
|
services.syslogd.extraConfig = "*.*,kern.none /dev/ttyS0";
|
||||||
|
|
||||||
|
# Prevent tests from accessing the Internet.
|
||||||
|
networking.defaultGateway = mkOverride 50 {} "";
|
||||||
|
networking.nameservers = mkOverride 50 {} [ ];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue