62 lines
2.0 KiB
Bash
62 lines
2.0 KiB
Bash
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
TD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)"
|
|
|
|
U="user"
|
|
|
|
export HOME=/home/user
|
|
export USER=user
|
|
export LC_ALL=en_US
|
|
export LANG=en_US.UTF-8
|
|
|
|
# original home
|
|
OH="/hosthome"
|
|
# link ~/.home to original home
|
|
ln -s "/hosthome" $HOME/.home
|
|
|
|
#vim -s ~/.vimrc -c 'q!'
|
|
# vim-plug
|
|
# this should happen from vimrc
|
|
#curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
|
|
# https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
|
|
|
# /nix is already created for us and chowned to us by now:
|
|
curl -L https://nixos.org/nix/install | sh
|
|
|
|
source /home/user/.nix-profile/etc/profile.d/nix.sh
|
|
|
|
# this should install all the packages from the config.nix:
|
|
nix-env -i workEnv
|
|
|
|
# FIXME have this pull from synced dir instead
|
|
# oh-my-zsh
|
|
curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh > /tmp/installomz.sh
|
|
export ZSH="$HOME/.zsh"
|
|
zsh /tmp/installomz.sh && rm /tmp/installomz.sh
|
|
|
|
|
|
###############################################################################
|
|
##### Personal Config
|
|
###############################################################################
|
|
# I had envisioned this image as adaptable to other users but I've decided
|
|
# to abandon that hope and hardcode my own values in here.
|
|
git config --global user.email sneak@sneak.berlin
|
|
git config --global user.name sneak
|
|
|
|
mkdir -p ~/.paths
|
|
# TODO FIXME change the syncthing paths on las1 when convenient sometime
|
|
ln -s ~/.home/Documents/syncthing/folders/sync ~/.paths/sneak-sync
|
|
ln -s ~/.home/Documents/syncthing/folders/scratch ~/.paths/sneak-scratch
|
|
ln -s ~/.home/Documents/syncthing/folders/sneak-docs ~/.paths/sneak-docs
|
|
ln -s ~/.paths/sneak-docs ~/Documents
|
|
ln -s ~/.paths/sneak-scratch/dev ~/dev
|
|
ln -s ~/.paths/sneak-sync/dotfiles/weechat ~/.weechat
|
|
ln -s ~/.paths/sneak-sync/ssh/config ~/.ssh/config
|
|
|
|
# link in ssh key from original home
|
|
mkdir -p ~/.ssh
|
|
ln -s ~/.paths/sneak-sync/secrets/ssh/pixel16/id_rsa ~/.ssh/id_rsa
|
|
ln -s ~/.paths/sneak-sync/secrets/ssh/pixel16/id_rsa.pub ~/.ssh/id_rsa.pub
|