#!/bin/sh # mkdir -p /tmp/init # INSTALL SSH if [ ! -d ~/.ssh ] then scp -r home.codevoid.de:.ssh ~/ fi # INSTALL DOAS if [ ! -f /etc/doas.conf ] then scp home.codevoid.de:/etc/doas.conf /tmp/init/ echo "Now enter root password and perform:" echo "cp /tmp/init/doas.conf /etc/doas.conf; exit;" /usr/bin/su fi # INSTALL SHELL scp home.codevoid.de:.profile ~/ scp home.codevoid.de:.kshrc ~/ mkdir -p ~/.dev ~/.cache/mutt touch ~/.dev/dir # INSTALL CORE PACKAGES doas pkg_add rsync-- vim--no_x11 git-- notion-- spectrwm-- hsetroot-- autocutsel-- dunst-- xclip-- \ wget-- lftp-- autorandr-- xautolock-- gnupg-- curl-- w3m-- universal-ctags-- \ mutt--gpgme password-store bwm-ng-- sysclean-- fzf-- # INIT DOTFILES if [ ! -d ~/.cfg ] then git --no-replace-objects clone --bare --depth 1 _gitea@git.uugrn.org:sdk/dotfiles.git $HOME/.cfg git --git-dir=${HOME}/.cfg/ --work-tree=${HOME} config --local status.showUntrackedFiles no git --git-dir=${HOME}/.cfg/ --work-tree=${HOME} checkout -f fi # INIT X stuff if [ ! -f ~/.xsession ] then scp home.codevoid.de:.xsession ~/ fi if [ ! -d ~/.fonts ] then scp -r home.codevoid.de:.fonts ~/ fi if [ ! -d ~/code ] then mkdir ~/code scp -r home.codevoid.de:code/st ~/code/ scp -r home.codevoid.de:code/cbar ~/code/ cd ~/code/st && make && doas make install cd ~/code/cbar && make && doas make install fi # INSTALL BIG PACKAGES doas pkg_add chromium echo -n "Is this a secure machine [y/N]?: " read case $REPLY in [yY]) SECURE_ENV=Y; ;; esac if [ "$SECURE_ENV" == "Y" ] then if [ ! -d ~/.password-store ] then git clone sdk@home.codevoid.de:.password-store.git fi if [ ! -d ~/.gnupg ] then scp -r home.codevoid.de:.gnupg ~/ fi fi