1
Fork 0

Fix stuff

This commit is contained in:
Hadeed 2024-11-17 14:31:26 +05:00
parent 8286bb1dbc
commit 52cc4cb1ca
5 changed files with 59 additions and 6 deletions

View file

@ -1,8 +1,8 @@
## Instructions
Run these commands before installation:
```sh
curl -fsSL -o ~/user_pkglist.txt https://git.hadeedahmad.com/hadeed/dots/raw/branch/main/user_pkglist.txt
curl -fsSL -o ~/user-commands-after.bash https://git.hadeedahmad.com/hadeed/dots/raw/branch/main/user-commands-after.bash
chmod +x ~/user-commands-after.bash
```bash
wget -qo ~/user_pkglist https://git.hadeedahmad.com/hadeed/dots/raw/branch/main/user_pkglist.txt
wget -qo ~/user_commands.bash https://git.hadeedahmad.com/hadeed/dots/raw/branch/main/user_commands.bash
chmod +x ~/user_commands.bash
```

View file

@ -5,7 +5,7 @@ USER_HOME=$(getent passwd "$USER" | cut -d: -f6)
echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" | EDITOR='tee -a' visudo
systemctl enable --now docker.service
systemctl enable docker.service
usermod -aG docker "$USER"
usermod --shell /usr/bin/zsh "$USER"
@ -16,15 +16,20 @@ su - "$USER" <<EOF
git clone https://git.hadeedahmad.com/hadeed/dots
cd dots
git remote set-url origin git@git.hadeedahmad.com:hadeed/dots
python bin/stow.py
EOF
cd "$USER_HOME"
rm -rf Desktop Documents Downloads Music Pictures Public Templates Videos
mkdir dl docs pics
su - "$USER" -c "xdg-user-dirs-update"
su - "$USER" <<EOF
pyenv install 3.13
pyenv global 3.13
EOF
mkdir "$USER_HOME/.ssh"
chmod 700 "$USER_HOME/.ssh"

35
user_commands.bash.1 Normal file
View file

@ -0,0 +1,35 @@
#!/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 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
git remote set-url origin git@git.hadeedahmad.com:hadeed/dots
python bin/stow.py
EOF
cd "$USER_HOME"
rm -rf Desktop Documents Downloads Music Pictures Public Templates Videos
mkdir dl docs pics
su - "$USER" -c "xdg-user-dirs-update"
su - "$USER" <<EOF
pyenv install 3.13
pyenv global 3.13
EOF
mkdir "$USER_HOME/.ssh"
chmod 700 "$USER_HOME/.ssh"

View file

@ -6,7 +6,7 @@ kitty
neovim
pyenv
starship
tiny-xxd
tinyxxd
ttf-jetbrains-mono
ttf-nerd-fonts-symbols-common
xsel

13
user_pkglist.txt.1 Normal file
View file

@ -0,0 +1,13 @@
bat
docker
docker-compose
eza
kitty
neovim
pyenv
starship
tinyxxd
ttf-jetbrains-mono
ttf-nerd-fonts-symbols-common
xsel
zsh