From: Preston Pan Date: Fri, 19 Sep 2025 06:52:24 +0000 (-0700) Subject: fix installer; fix continuity again X-Git-Url: https://ret2pop.net/gitweb/%22/%22./index.html/static/gitweb.css?a=commitdiff_plain;h=e4b2dd39be50f7bf064a2a57076f75317b5ebad0;p=monorepo.git fix installer; fix continuity again --- diff --git a/config/nix.org b/config/nix.org index de5be70..a11f064 100644 --- a/config/nix.org +++ b/config/nix.org @@ -493,7 +493,6 @@ In order to run docker/podman containers, I need this file: containers = {}; }; containers.enable = true; - docker.enable = true; podman = { enable = true; dockerCompat = true; @@ -1161,7 +1160,7 @@ This is my impermanence profile, which removes all files on reboot except for th { assertions = [ { - assertion = (! config.monorepo.profiles.impermanence.enable && (! (config.monorepo.vars.fileSystem == "btrfs"))); + assertion = (! (config.monorepo.profiles.impermanence.enable && (! (config.monorepo.vars.fileSystem == "btrfs")))); message = "Impermanence requires btrfs filesystem."; } ]; @@ -3887,6 +3886,13 @@ This contains the installation script I use to install my systems. 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"))" @@ -3904,13 +3910,6 @@ This contains the installation script I use to install my systems. 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" diff --git a/nix/modules/docker.nix b/nix/modules/docker.nix index 1168341..ac2c456 100644 --- a/nix/modules/docker.nix +++ b/nix/modules/docker.nix @@ -6,7 +6,6 @@ containers = {}; }; containers.enable = true; - docker.enable = true; podman = { enable = true; dockerCompat = true; diff --git a/nix/modules/impermanence.nix b/nix/modules/impermanence.nix index aceb6fc..e5308ac 100644 --- a/nix/modules/impermanence.nix +++ b/nix/modules/impermanence.nix @@ -2,7 +2,7 @@ { assertions = [ { - assertion = (! config.monorepo.profiles.impermanence.enable && (! (config.monorepo.vars.fileSystem == "btrfs"))); + assertion = (! (config.monorepo.profiles.impermanence.enable && (! (config.monorepo.vars.fileSystem == "btrfs")))); message = "Impermanence requires btrfs filesystem."; } ]; 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"