Add install script

This commit is contained in:
Augusto Gunsch 2022-10-21 17:16:42 +02:00
parent 828ce3c60c
commit dc6d401815
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
3 changed files with 8 additions and 10 deletions

View File

@ -1,8 +0,0 @@
To install a profile:
```
git clone https://git.augustogunsch.com/augusto/archinstall-profiles
cd archinstall-profiles/<PROFILE>
archinstall --config user_configuration.json --disk-layout user_disk_layout.json --creds user_credentials.json
```
Change user password and confirm

View File

@ -104,8 +104,8 @@
"timezone": "Europe/Warsaw",
"version": "2.5.1",
"custom-commands": [
"sudo -u augusto sh -c 'mkdir $HOME/repos; cd $HOME/repos; git clone https://git.augustogunsch.com/augusto/dotfiles; cd dotfiles; ./install.sh; ./configure-nvim.sh'",
"sudo -u root sh -c 'mkdir $HOME/repos; cd $HOME/repos; git clone https://git.augustogunsch.com/augusto/dotfiles; cd dotfiles; ./install.sh; ./configure-nvim.sh'",
"sudo -u augusto sh -c 'mkdir $HOME/repos; cd $HOME/repos; git clone https://git.augustogunsch.com/augusto/dotfiles; cd dotfiles; ./install.sh'",
"sudo -u root sh -c 'mkdir $HOME/repos; cd $HOME/repos; git clone https://git.augustogunsch.com/augusto/dotfiles; cd dotfiles; ./install.sh'",
"sed -i 's/export PROMPT=.*$/export PROMPT='\"'\"'%B%F{63}[%F{68}%n@%m %F{white}%~%F{63}]$%b%f '\"'\"'/' /root/.zshrc",
"chsh -s /usr/bin/zsh root; chsh -s /usr/bin/zsh augusto",
"sudo -u augusto sh -c 'mkdir /tmp/aur; cd /tmp/aur; git clone https://aur.archlinux.org/yay.git; cd yay; makepkg'",

6
install.sh Executable file
View File

@ -0,0 +1,6 @@
[ -z "$1" ] && echo 'usage: ./install <PROFILE>' && exit 1
archinstall \
--config user_configuration.json \
--disk-layout user_disk_layout.json \
--creds user_credentials.json