kojq / gal

Install Arch Linux (CachyOS) with a favorable graphical experience.
MIT License
3 stars 0 forks source link

Generalize script with a selection menu #6

Closed kojq closed 1 year ago

kojq commented 1 year ago

We can do a selection menu. It should be lean in selection and have an efficient layout for mass deployment.

While we could have an optional configuration file, it is a bad practice for this project because information such as credentials and location data are more accessible (regardless of if the harm is statistically negligible). Even a partial configuration file consisting of only technical choices would be obsolete due to having more for all parties to manage. A configuration file would be desirable for tuning hefty amounts of technical choices. At that point, this project would become an interactive install guide, and that is not the goal. Thus, it's best to not have a configuration file for security, privacy, safety, and development. Instead, an interactive selection menu can be provided.

kojq commented 1 year ago

All entries except credentials are filled by default and can thereby only be changed. As a result, excluding credentials, we do not need to check if user-modifiable "variables" are being filled prior to install.

Consider implementing fuzzy search for a faster setup.

Disk

WARNING:
Back up data for all devices.
Ensure the disk name is correct.
The entire disk will be wiped.

Credentials

users

root

Package

Timezone

Keyboard

Language

Hostname

Services

systemctl enable

systemctl start

kojq commented 1 year ago

Use -x for disk size to improve detection.

Only allow writing over hostname or determine if it exists to continue.

kojq commented 1 year ago

Packages, Services, Language, and Keyboard are not done. Hostname is under consideration.

kojq commented 1 year ago

The main idea is that users should interact only when needed.

This is done for the disk, credentials, and timezone.

Prompting for packages and services in a friendly way is being decided upon.

kojq commented 1 year ago

After much deliberation, I have considered it best to leave what are presumed to be ideal defaults.