aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/home.nix2
-rw-r--r--live/iso.nix11
2 files changed, 7 insertions, 6 deletions
diff --git a/desktop/home.nix b/desktop/home.nix
index c3c48b4..594ac44 100644
--- a/desktop/home.nix
+++ b/desktop/home.nix
@@ -1020,7 +1020,7 @@ on-notify=exec mpv /home/${vars.userName}/sounds/notification.wav --no-config --
g = "git";
v = "vim";
py = "python3";
- rb = "doas nixos-rebuild switch";
+ rb = "doas nixos-rebuild switch --flake .#continuity-dell";
nfu = "cd ~/src/toughnix && git add . && git commit -m \"new flake lock\" && cd /etc/nixos/ && doas nix flake update";
usite
= "cd ~/src/publish-org-roam-ui && bash local.sh && rm -rf ~/website_html/graph_view; cp -r ~/src/publish-org-roam-ui/out ~/website_html/graph_view && rsync -azvP --chmod=\"Du=rwx,Dg=rx,Do=rx,Fu=rw,Fg=r,Fo=r\" ~/website_html/ ${vars.websiteLocation}";
diff --git a/live/iso.nix b/live/iso.nix
index 14812cd..2a3bed7 100644
--- a/live/iso.nix
+++ b/live/iso.nix
@@ -136,13 +136,14 @@ if [ ! -d "$HOME/toughnix/" ]; then
cd $HOME
git clone https://git.nullring.xyz/toughnix.git
fi
-cd "$HOME/toughnix"
-git add .
-cd "$HOME"
+
vim "$HOME/toughnix/desktop/vars.nix"
+DISK="$(gum --placeholder "Disk (ex: /dev/sda)")"
+
gum confirm --default=false \
- "🔥 🔥 🔥 WARNING!!!! This will ERASE ALL DATA on the disk. Are you sure you want to continue?"
-sudo nix run 'github:nix-community/disko/latest#disko-install' -- --write-efi-boot-entries --flake './toughnix#continuity-dell'
+ "🔥 🔥 🔥 WARNING!!!! This will ERASE ALL DATA on the disk $DISK. Are you sure you want to continue?"
+sudo nix run 'github:nix-community/disko/latest#disko-install' -- --write-efi-boot-entries --flake
+ './toughnix#continuity-dell' --disk main "$DISK"
'')
];
};