summaryrefslogtreecommitdiff
path: root/nix/systems/installer
diff options
context:
space:
mode:
Diffstat (limited to 'nix/systems/installer')
-rw-r--r--nix/systems/installer/default.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/nix/systems/installer/default.nix b/nix/systems/installer/default.nix
index 8fb9dfd..780e2ee 100644
--- a/nix/systems/installer/default.nix
+++ b/nix/systems/installer/default.nix
@@ -58,6 +58,13 @@ cd "$HOME"
ping -q -c1 google.com &>/dev/null && echo "online! Proceeding with the installation..." || nmtui
+if [ ! -d "$HOME/monorepo/" ]; then
+ git clone ${commits.monorepoUrl}
+ cd "$HOME/monorepo"
+ git checkout "${commits.monorepoCommitHash}"
+ cd "$HOME"
+fi
+
gum style --border normal --margin "1" --padding "1 2" "Choose a system to install or select `new` in order to create a new system."
SYSTEM="$(gum choose $(find "$HOME/monorepo/nix/systems" -mindepth 1 -maxdepth 1 -type d -printf "%f\n" | grep -v -E 'installer'; printf "New"))"
@@ -75,13 +82,6 @@ if [[ "$SYSTEM" == "New" ]]; then
fi
fi
-if [ ! -d "$HOME/monorepo/" ]; then
- git clone ${commits.monorepoUrl}
- cd "$HOME/monorepo"
- git checkout "${commits.monorepoCommitHash}"
- cd "$HOME"
-fi
-
if [ ! -d "$HOME/monorepo/nix/systems/$SYSTEM" ]; then
mkdir -p "$HOME/monorepo/nix/systems/$SYSTEM"