From 1de6730e5778fb238fd74b3a5f269d47bfb60487 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Thu, 9 Jan 2025 16:36:02 -0800 Subject: fix iso image --- desktop/home.nix | 2 +- live/iso.nix | 11 ++++++----- 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" '') ]; }; -- cgit