anchor.diff:        # has the generated configuration.nix file syntax errors?
         nix-instantiate --eval-only /tmp/test.nix
   
  -      echo 'export NIXOS_CONFIG=/etc/nixos/nixos/tests/test-nixos-install-from-cd/configuration.nix' >> /root/.bashrc
  -      . ~/.bashrc
  +      mkdir /mnt/root
  +      echo 'export NIXOS_CONFIG=/etc/nixos/nixos/tests/test-nixos-install-from-cd/configuration.nix' >> /mnt/root/.bashrc
  +      . /mnt/root/.bashrc
         export NIX_OTHER_STORES=/nix-on-host
   
         run-in-chroot "/nix/store/nixos-bootstrap --install --no-pull"
  
positive.code:     RUN_KVM -boot c
      waitForSSHD
  
  
      INFO "verifying that nix-env -i works"
  
      SSH_STDIN_E << EOF
  
        cat >> test.nix << EOF_TEST
        let pkgs = import /etc/nixos/nixpkgs/pkgs/top-level/all-packages.nix {};
        in pkgs.stdenv.mkDerivation {
          name = "test";
          phases = "create_out";
          create_out = "mkdir -p $out/ok";
        }
      EOF_TEST
  
        set -x
        nix-env -i -f test.nix
        [ -e ~/.nix-profile/ok ]
      EOF
  
      SHUTDOWN_VM
  
  
negative.code:     PATH=${pkgs.samba}/sbin:$PATH
  
      # install the system
      ${debug}
  
      SOCKET_NAME=65535.socket
  
  