Added almost everything

This commit is contained in:
Afonso Franco 2023-01-29 02:32:19 +00:00
parent fca3b93dd5
commit 03a9749b46
Signed by: afonso
GPG key ID: C459E0BB3DCEE899
15 changed files with 135 additions and 0 deletions

14
3-post-reboot/aur.sh Executable file
View file

@ -0,0 +1,14 @@
echo 'Install yay.'
sudo pacman -S --needed base base-devel wget --noconfirm
mkdir -p /home/afonso/git/yay
tmpdir="/home/afonso/git/yay"
command cd "${tmpdir}" || return 1
dl_url="$(
command curl -sfLS 'https://api.github.com/repos/Jguer/yay/releases/latest' | grep 'browser_download_url' | tail -1 | cut -d \" -f 4
)"
command wget "${dl_url}"
command tar xzvf yay_*_x86_64.tar.gz
command cd yay_*_x86_64 || return 1
./yay -Sy yay-bin --noconfirm
rm -rf "${tmpdir}"

2
3-post-reboot/ghcup.sh Executable file
View file

@ -0,0 +1,2 @@
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_GHC_VERSION=latest BOOTSTRAP_HASKELL_CABAL_VERSION=latest BOOTSTRAP_HASKELL_INSTALL_STACK=1 BOOTSTRAP_HASKELL_INSTALL_HLS=1 BOOTSTRAP_HASKELL_ADJUST_BASHRC=P sh
stack config set system-ghc true --global

7
3-post-reboot/init.sh Executable file
View file

@ -0,0 +1,7 @@
script_full_path=$(dirname "$0")
source $script_full_path/sevices.sh
source $script_full_path/aur.sh
source $script_full_path/rustup.sh
source $script_full_path/ghcup.sh

7
3-post-reboot/pull-config.sh Executable file
View file

@ -0,0 +1,7 @@
git clone --bare https://gitea.olympuslab.net/afonso/dotfiles /home/afonso/dotfiles
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
mkdir -p .config-backup && \
config checkout 2>&1 | grep -E "\s+\." | awk {'print $1'} | \
xargs -I{} mv {} .config-backup/{}
config checkout
config remote set-url origin ssh://git@gitea.olympuslab.net:522/afonso/dotfiles

1
3-post-reboot/refind.sh Normal file
View file

@ -0,0 +1 @@
refind-install

1
3-post-reboot/rustup.sh Executable file
View file

@ -0,0 +1 @@
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y

3
3-post-reboot/services.sh Executable file
View file

@ -0,0 +1,3 @@
sudo systemctl enable --now NetworkManager
systemctl --user enable --now pipewire
systemctl --user enable --now wireplumber

13
3-post-reboot/xmonad.sh Normal file
View file

@ -0,0 +1,13 @@
git clone https://github.com/xmonad/xmonad /home/afonso/.config/xmonad/xmonad-git
git clone https://github.com/xmonad/xmonad-contrib /home/afonso/.config/xmonad/xmonad-contrib-git
cd /home/afonso/.config/xmonad/ || exit
stack init
stack install
git clone https://codeberg.org/xmobar/xmobar /home/afonso/.config/xmobar/xmobar-git/
cd /home/afonso/.config/xmobar/
stack init
sed -i "s/# flags: {}/ flags:\n xmobar:\n all_extensions: true\n with_threaded: true/" /home/afonso/.config/xmobar/stack.yaml
sed -i "s/# extra-deps: \[\]/ extra-deps:\n - netlink-1.1.1.0/" /home/afonso/.config/xmobar/stack.yaml
stack install