Add documentation 🤯

Say whaaaaat?
This commit is contained in:
Geoffrey Frogeye 2023-12-02 18:50:31 +01:00
parent 25011a3353
commit c9156044f8
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
9 changed files with 45 additions and 6 deletions

View file

@ -8,13 +8,14 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
# Parse arguments
function help {
echo "Usage: $0 [-h|-e] profile"
echo "Install NixOS on a device."
echo
echo "Arguments:"
echo " profile: OS/disk profile to use"
echo
echo "Options:"
echo " -h: Display this help message."
echo " -e: Erase the disk. This can be used in case the wanted partition scheme doesn't match."
echo " -e: Erase the disk. For cases where the partition scheme doesn't match the existing one."
}
disko_mode=mount
@ -49,7 +50,7 @@ then
echo "Profile not found."
fi
disko_config="${profile_dir}/disko.nix"
disko_config="${profile_dir}/dk.nix"
if [ ! -f "$disko_config" ]
then
echo "Disk configuration not found."