diff --git a/scripts/install-packages.sh b/scripts/install-packages.sh index 1f4fdfa..271c12a 100644 --- a/scripts/install-packages.sh +++ b/scripts/install-packages.sh @@ -40,7 +40,7 @@ PKGS_TO_INSTALL+=(hd-idle hdparm tldr smartmontools wol) PKGS_TO_INSTALL+=(tar unrar unzip xz zip) # software devel - +PKGS_TO_INSTALL+=(rustup) # kernel devel PKGS_TO_INSTALL+=(base-devel bc cpio gcc git inetutils kmod libelf linux-headers make perl tar xmlto xz) diff --git a/scripts/pratham-setup.sh b/scripts/pratham-setup.sh index 1420f5e..396d09f 100644 --- a/scripts/pratham-setup.sh +++ b/scripts/pratham-setup.sh @@ -23,22 +23,10 @@ if [[ $WHAT_IS_MY_TZ == "whoopsie" || $WHAT_IS_MY_HOSTNAME == "whoopsie" ]]; the systemctl reboot fi - ################################################################################ -# SETUP DEV ENVIRONMENT +# SSH KEYS ################################################################################ -# rust-lang -curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -rustup default stable -rustup component add rust-src rust-analyzer -rustup component add rust-analysis -cargo install cargo-outdated cargo-tree - - -# neovim (vim-plug) -sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' - # create ssh keys if [[ ! -d $HOME/.ssh ]]; then mkdir $HOME/.ssh @@ -66,6 +54,23 @@ cat $HOME/.ssh/gitea.pub echo "Populate Hostname (IP addr) for \"git.thefossguy.com\" in ~/.ssh/config" bash + +################################################################################ +# SETUP DEV ENVIRONMENT +################################################################################ + +# rust-lang +#curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh (removed because paru has a hard dependency on Arch's cargo; this is handled by the `rustup` package) +rustup default stable +rustup component add rust-src rust-analyzer +rustup component add rust-analysis +cargo install cargo-outdated cargo-tree + + +# neovim (vim-plug) +sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' + + # get dotfiles echo -ne "\n\n\n\n" @@ -97,13 +102,14 @@ rsync \ ################################################################################ # install necessary packages for installing \`paru\` -doas pacman -S --needed base-devel +doas pacman --sync --refresh --needed base-devel # build paru mkdir /tmp/parutemp-PARU pushd /temp/parutemp-PARU git clone --depth 1 https://aur.archlinux.org/paru.git +pushd paru makepkg -si if [[ $? -ne 0 ]]; then tput -x clear @@ -111,6 +117,7 @@ if [[ $? -ne 0 ]]; then exit 1 fi popd +popd # AUR pkgs paru -S qomui noisetorch ssmtp