Added installer for server configurations

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

@ -3,6 +3,8 @@
export ROOT=~/dotfiles
export DOTFILES=$ROOT
export SCRIPTS=$DOTFILES/install_scripts
case $1 in
edit)
$EDITOR $ROOT/config/$2
@ -15,8 +17,6 @@ case $1 in
install)
sudo pacman -Sy python --noconfirm
SCRIPTS=$DOTFILES/install_scripts
$SCRIPTS/pre-install
$SCRIPTS/install-packages
@ -27,7 +27,18 @@ case $1 in
# fi
$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
sudo usermod -aG docker $USER
# 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
$SCRIPTS/install-vim.sh

@ -33,8 +33,6 @@
- networkmanager
# Fonts
- ttf-roboto
- ttf-roboto-mono
- ttf-fira-code
- ttf-material-design-icons
- 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