aboutsummaryrefslogtreecommitdiff
path: root/nix/systems
diff options
context:
space:
mode:
Diffstat (limited to 'nix/systems')
-rw-r--r--nix/systems/installer/default.nix9
1 files changed, 4 insertions, 5 deletions
diff --git a/nix/systems/installer/default.nix b/nix/systems/installer/default.nix
index 02f3b7e..8b95009 100644
--- a/nix/systems/installer/default.nix
+++ b/nix/systems/installer/default.nix
@@ -26,14 +26,13 @@ if [ "$(id -u)" -eq 0 ]; then
fi
ping -q -c1 google.com &>/dev/null && echo "online! Proceeding with the installation..." || nmtui
cd
-if [ ! -d "$HOME/toughnix/" ]; then
- git clone https://git.nullring.xyz/monorepo.git
+if [ ! -d "$HOME/monorepo/" ]; then
+ git clone --recurse-submodules https://git.nullring.xyz/monorepo.git
cd monorepo
git checkout "${commits.monorepoCommitHash}"
fi
-vim "$HOME/monorepo/nix/modules/default.nix"
-vim "$HOME/monorepo/nix/modules/vars.nix"
-sudo nix --experimental-features "nix-command flakes" run "github:nix-community/disko/${commits.diskoCommitHash}" -- --mode destroy,format,mount "$HOME/monorepo/nix/systems/desktop/sda-simple.nix"
+vim "$HOME/monorepo/nix/systems/continuity/default.nix"
+sudo nix --experimental-features "nix-command flakes" run "github:nix-community/disko/${commits.diskoCommitHash}" -- --mode destroy,format,mount "$HOME/monorepo/nix/modules/sda-simple.nix"
cd /mnt
sudo nixos-install --flake $HOME/monorepo/nix#continuity
sudo cp $HOME/monorepo "/mnt/home/$(ls /mnt/home/)/"