From 9dadfc354132074e71bb99fdcc561dc1549c70e7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 23 May 2012 15:40:31 +0000 Subject: [PATCH] * Mark QEMU VMs as NixOS machines. svn path=/nixos/trunk/; revision=34217 --- modules/virtualisation/qemu-vm.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/virtualisation/qemu-vm.nix b/modules/virtualisation/qemu-vm.nix index add88753f009..098c2944c1b6 100644 --- a/modules/virtualisation/qemu-vm.nix +++ b/modules/virtualisation/qemu-vm.nix @@ -274,6 +274,10 @@ in boot.initrd.postMountCommands = '' + # Mark this as a NixOS machinex. + mkdir -p $targetRoot/etc + echo -n > $targetRoot/etc/NIXOS + # Fix the permissions on /tmp. chmod 1777 $targetRoot/tmp