Added installer for server configurations

main
Guus van Meerveld 2 years ago
parent 465308cd6d
commit a66921335f
Signed by: Guusvanmeerveld
GPG Key ID: 2BA7D7912771966E

@ -3,6 +3,8 @@
export ROOT=~/dotfiles export ROOT=~/dotfiles
export DOTFILES=$ROOT export DOTFILES=$ROOT
export SCRIPTS=$DOTFILES/install_scripts
case $1 in case $1 in
edit) edit)
$EDITOR $ROOT/config/$2 $EDITOR $ROOT/config/$2
@ -15,8 +17,6 @@ case $1 in
install) install)
sudo pacman -Sy python --noconfirm sudo pacman -Sy python --noconfirm
SCRIPTS=$DOTFILES/install_scripts
$SCRIPTS/pre-install $SCRIPTS/pre-install
$SCRIPTS/install-packages $SCRIPTS/install-packages
@ -27,7 +27,18 @@ case $1 in
# fi # fi
$SCRIPTS/post-install $SCRIPTS/post-install
;;
install-server)
sudo apt install python3 nvim neofetch docker -y
$ROOT/install -c "$DOTFILES/install-server.yaml"
$SCRIPTS/install-z.sh
$SCRIPTS/chuser.sh
$SCRIPTS/install-vim.sh
;; ;;
*) *)

@ -0,0 +1,17 @@
- defaults:
link:
create: true
relink: true
force: true
- clean: ["~"]
- link:
~/.aliases: config/.aliases.sh
~/.config/nvim/init.vim: config/init.vim
- shell:
- [git submodule update --init --recursive, Installing submodules]
- create:
- ~/.config

@ -11,10 +11,4 @@ sudo systemctl enable --now syncthing@$USER
# Docker # Docker
sudo usermod -aG docker $USER sudo usermod -aG docker $USER
# Neovim $SCRIPTS/install-vim.sh
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'
nvim +'PlugInstall --sync' +qa
cd ~/.local/share/nvim/plugged/YouCompleteMe && python3 install.py --all

@ -33,8 +33,6 @@
- networkmanager - networkmanager
# Fonts # Fonts
- ttf-roboto
- ttf-roboto-mono
- ttf-fira-code - ttf-fira-code
- ttf-material-design-icons - ttf-material-design-icons
- noto-fonts-emoji - noto-fonts-emoji

@ -0,0 +1,7 @@
# Neovim
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'
nvim +'PlugInstall --sync' +qa
cd ~/.local/share/nvim/plugged/YouCompleteMe && python3 install.py --all