]> Untitled Git - monorepo.git/commitdiff
fix installer; fix continuity again
authorPreston Pan <ret2pop@gmail.com>
Fri, 19 Sep 2025 06:52:24 +0000 (23:52 -0700)
committerPreston Pan <ret2pop@gmail.com>
Fri, 19 Sep 2025 06:52:24 +0000 (23:52 -0700)
config/nix.org
nix/modules/docker.nix
nix/modules/impermanence.nix
nix/systems/installer/default.nix

index de5be70d893f48dfcc429718cea5b8dc4191e2f0..a11f06443f5cec70bb68f947e3be23444a70eb35 100644 (file)
@@ -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"
index 11683416c9da3bfdc0f0c6cb333b06b53eb42e50..ac2c45685b02087fed64420b8c4fbbfce1aa83e7 100644 (file)
@@ -6,7 +6,6 @@
       containers = {};
     };
     containers.enable = true;
-    docker.enable = true;
     podman = {
       enable = true;
       dockerCompat = true;
index aceb6fc60ec0119b5dd06bc23800c08290679233..e5308ac880858d9cb1cd51c47c3c0af104d509b5 100644 (file)
@@ -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.";
     }
   ];
index 8fb9dfd2dea8c2ed5e2ab14909eedbf3dbc0752f..780e2ee870d1aa8e6ceb47c86159af1f0de5443c 100644 (file)
@@ -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"