mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 07:13:55 -05:00
flake/clean-install: reformat
This commit is contained in:
parent
44cb60783d
commit
2a7632f19c
|
@ -1,7 +1,7 @@
|
||||||
# Check if an argument is provided
|
# Check if an argument is provided
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
echo "Error: Please provide a valid hostname as an argument."
|
echo "Error: Please provide a valid hostname as an argument."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
HOST=$1
|
HOST=$1
|
||||||
|
@ -11,12 +11,12 @@ echo "Warning: Running this script will wipe the currently installed system."
|
||||||
read -p "Do you want to continue? (y/n): " answer
|
read -p "Do you want to continue? (y/n): " answer
|
||||||
|
|
||||||
if [ "$answer" != "y" ]; then
|
if [ "$answer" != "y" ]; then
|
||||||
echo "Aborted."
|
echo "Aborted."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sudo nix --experimental-features "nix-command flakes" run \
|
sudo nix --experimental-features "nix-command flakes" run \
|
||||||
github:nix-community/disko -- --mode disko --flake $FLAKE
|
github:nix-community/disko -- --mode disko --flake $FLAKE
|
||||||
|
|
||||||
# Install NixOS with the updated flake input and root settings
|
# Install NixOS with the updated flake input and root settings
|
||||||
sudo nixos-install --no-root-password --root /mnt --flake $FLAKE
|
sudo nixos-install --no-root-password --root /mnt --flake $FLAKE
|
Loading…
Reference in a new issue