From aa075f089e99144b5b7037372f1c5b6057f45584 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 24 Jun 2009 12:16:06 +0000 Subject: [PATCH] * Set the default gateway. svn path=/nixos/branches/modular-nixos/; revision=16034 --- modules/virtualisation/qemu-vm.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/virtualisation/qemu-vm.nix b/modules/virtualisation/qemu-vm.nix index 354294b4060c..41c0d662af03 100644 --- a/modules/virtualisation/qemu-vm.nix +++ b/modules/virtualisation/qemu-vm.nix @@ -104,6 +104,8 @@ in # host filesystem and thus deadlocks the system. networking.useDHCP = false; + networking.defaultGateway = "10.0.2.2"; + system.build.vm = pkgs.runCommand "nixos-vm" {} '' ensureDir $out/bin