summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index a7dfe4d..7461a20 100755
--- a/install.sh
+++ b/install.sh
@@ -9,6 +9,11 @@ MACHINE="$1"
sudo cp -rv * /mnt/config
+CONFIG_ARGS="--root /mnt"
+if [ $MACHINE = "x" ]; then
+ CONFIG_ARGS="$CONFIG_ARGS --no-filesystems"
+fi
+
sudo nixos-generate-config --root /mnt --no-filesystems
cd /mnt/config