diff --git a/update-nix.sh b/update-nix.sh deleted file mode 100755 index 5aec184..0000000 --- a/update-nix.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash - -# This will update the repo - -echo "Updating Configs" - -git pull - -echo "Done" \ No newline at end of file diff --git a/vargix-os b/vargix-os index 2d62309..cf94571 100755 --- a/vargix-os +++ b/vargix-os @@ -37,12 +37,12 @@ start () { else menuItems=( "1. Perform Rebuild" - "2. Update Build " + "2. Update Configs " "Q. Exit " ) menuActions=( doBuild - updateBuild + updateScript quitApp ) menuTitle=" $hostname was found. Proceed with rebuild?" @@ -59,6 +59,8 @@ start () { doBuild () { logo sudo nixos-rebuild switch -I nixos-config=$scriptDIR/$hostname.nix + echo Finished .. press any key to continue + read -n 1 return 0 } @@ -68,6 +70,14 @@ updateBuild () { return 0 } +updateScript () { + git -C $scriptDIR pull + echo Script pulled you may need to restart vargix-os if theres been an update to it + echo .. press any key to continue + read -n 1 + return 0 +} + quitApp () { return 0 }