diff options
| author | Preston Pan <ret2pop@gmail.com> | 2025-09-18 23:52:24 -0700 |
|---|---|---|
| committer | Preston Pan <ret2pop@gmail.com> | 2025-09-18 23:52:24 -0700 |
| commit | e4b2dd39be50f7bf064a2a57076f75317b5ebad0 (patch) | |
| tree | 309711f7bb92c07a4e411fee86707e1168b078a1 /nix/systems/installer/default.nix | |
| parent | 6800e6022fdafbc236097dc90ad128363d6fcd1d (diff) | |
fix installer; fix continuity again
Diffstat (limited to 'nix/systems/installer/default.nix')
| -rw-r--r-- | nix/systems/installer/default.nix | 14 |
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" |
