From fe329f96ef14bf3965f1da4de84142e33253efec Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 11 Aug 2009 14:28:25 +0000 Subject: [PATCH] * Mount the host's /nix/var/nix/db in the guest. svn path=/nixos/trunk/; revision=16674 --- modules/virtualisation/qemu-vm.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/virtualisation/qemu-vm.nix b/modules/virtualisation/qemu-vm.nix index 742bef873fc3..5158af7668a5 100644 --- a/modules/virtualisation/qemu-vm.nix +++ b/modules/virtualisation/qemu-vm.nix @@ -105,6 +105,12 @@ in options = "bind"; neededForBoot = true; } + # Mount the host's Nix database. This allows read-only Nix + # operations in the guest to work properly. + { mountPoint = "/nix/var/nix/db"; + device = "/hostfs/nix/var/nix/db"; + options = "bind"; + } ]; # Starting DHCP brings down eth0, which kills the connection to the