30 lines
624 B
Bash
30 lines
624 B
Bash
#!/bin/bash
|
|
|
|
USER=$1
|
|
USER_HOME=$(getent passwd "$USER" | cut -d: -f6)
|
|
|
|
echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" | EDITOR='tee -a' visudo
|
|
|
|
systemctl enable --now docker.service
|
|
usermod -aG docker "$USER"
|
|
|
|
usermod --shell /usr/bin/zsh "$USER"
|
|
|
|
su - "$USER" <<EOF
|
|
mkdir -p "$USER_HOME/docs/repos"
|
|
cd "$USER_HOME/docs/repos"
|
|
|
|
git clone https://git.hadeedahmad.com/hadeed/dots
|
|
cd dots
|
|
|
|
python bin/stow.py
|
|
EOF
|
|
|
|
cd "$USER_HOME"
|
|
rm -rf Desktop Documents Downloads Music Pictures Public Templates Videos
|
|
su - "$USER" -c "xdg-user-dirs-update"
|
|
|
|
su - "$USER" <<EOF
|
|
pyenv install 3.13
|
|
pyenv global 3.13
|
|
EOF
|