about summary refs log tree commit diff
path: root/pkgs/build-support/vm
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2014-02-16 00:48:01 +0100
committeraszlig <aszlig@redmoonstudios.org>2014-02-26 04:51:57 +0100
commitcfa859d79222d034a9fe493192150b80faae4ee8 (patch)
treefc6e95dcc44279fb06873fb25537545a37dd0321 /pkgs/build-support/vm
parent3e91192f079c2eac4bd15d564bb2fd4702506b36 (diff)
downloadnixlib-cfa859d79222d034a9fe493192150b80faae4ee8.tar
nixlib-cfa859d79222d034a9fe493192150b80faae4ee8.tar.gz
nixlib-cfa859d79222d034a9fe493192150b80faae4ee8.tar.bz2
nixlib-cfa859d79222d034a9fe493192150b80faae4ee8.tar.lz
nixlib-cfa859d79222d034a9fe493192150b80faae4ee8.tar.xz
nixlib-cfa859d79222d034a9fe493192150b80faae4ee8.tar.zst
nixlib-cfa859d79222d034a9fe493192150b80faae4ee8.zip
vm/windows: Don't init /nix/store on install.
We're going to do this during the suspendedVM phase, so we're able to
more easily change the shares without reinstalling the whole VM.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/build-support/vm')
-rw-r--r--pkgs/build-support/vm/windows/install/default.nix7
1 files changed, 2 insertions, 5 deletions
diff --git a/pkgs/build-support/vm/windows/install/default.nix b/pkgs/build-support/vm/windows/install/default.nix
index d766cbcf8e3a..64177ea17137 100644
--- a/pkgs/build-support/vm/windows/install/default.nix
+++ b/pkgs/build-support/vm/windows/install/default.nix
@@ -12,11 +12,8 @@ let
     $(cat "${cygwinSshKey}/key.pub")
     PUBKEY
     ssh-host-config -y -c 'binmode ntsec' -w dummy
-
-    net use S: '\\192.168.0.2\nixstore'
-    mkdir -p /nix/store
-    echo "/cygdrives/s /nix/store none bind 0 0" >> /etc/fstab
-    shutdown -s now
+    cygrunsrv -S sshd
+    shutdown -s 5
     EOF
   '';