diff --git a/install.sh b/install.sh index 2d6b9bd..56ae3c1 100755 --- a/install.sh +++ b/install.sh @@ -1,3 +1,4 @@ +echo "enter config name" read HOST sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode disko system/$HOST/disk.nix diff --git a/rebuild.sh b/rebuild.sh new file mode 100644 index 0000000..aee2db4 --- /dev/null +++ b/rebuild.sh @@ -0,0 +1,3 @@ +echo "enter config name" +read HOST +sudo nixos-rebuild switch --flake .#$HOST diff --git a/update.sh b/update.sh new file mode 100644 index 0000000..c0d35d8 --- /dev/null +++ b/update.sh @@ -0,0 +1,7 @@ +echo "enter config name" + +read HOST + +nix flake update + +sudo nixos-rebuild switch --flake .#$HOST