summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-10-10 10:39:53 -0400
committerRaghuram Subramani <raghus2247@gmail.com>2025-10-10 10:39:53 -0400
commit1d43f68cc4fbdf47e56094c48277a3cebdd94cd1 (patch)
treef73c05564dc8bdc2ec1c55ad45abca12f4b0062b /install.sh
parent672b481df1bac2720a065c5c2a95e53e4b768b58 (diff)
manual (non-impermanence) partitioner and general installer
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/install.sh b/install.sh
index af1bf62..a7dfe4d 100755
--- a/install.sh
+++ b/install.sh
@@ -1,8 +1,12 @@
#!/usr/bin/env bash
-MACHINE=x
+if [ "$#" -ne 1 ]; then
+ echo "Usage: $0 [machine]"
+ exit
+fi
+
+MACHINE="$1"
-sudo mkdir -v /mnt/persist/system
sudo cp -rv * /mnt/config
sudo nixos-generate-config --root /mnt --no-filesystems