split into roles
This commit is contained in:
parent
4d072894ec
commit
74b67b7e27
17 changed files with 186 additions and 110 deletions
|
@ -1,5 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
codium --list-extensions | awk -v q="\"" -v d="," '{s=(NR==1?s:s d)q $0 q}END{print "[" s "]"}'
|
|
@ -1,33 +1,3 @@
|
|||
- name: Get Signal APT key
|
||||
become: true
|
||||
get_url:
|
||||
url: https://updates.signal.org/desktop/apt/keys.asc
|
||||
dest: /etc/apt/trusted.gpg.d/signal.asc
|
||||
- name: Install Signal APT repository
|
||||
become: true
|
||||
apt_repository:
|
||||
repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/signal.asc] https://updates.signal.org/desktop/apt xenial main"
|
||||
state: present
|
||||
- name: Get VSCodium APT key
|
||||
become: true
|
||||
get_url:
|
||||
url: https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg
|
||||
dest: /etc/apt/trusted.gpg.d/vscodium-archive-keyring.asc
|
||||
- name: Install VSCodium APT repository
|
||||
become: true
|
||||
apt_repository:
|
||||
repo: "deb [signed-by=/etc/apt/trusted.gpg.d/vscodium-archive-keyring.asc ] https://download.vscodium.com/debs vscodium main"
|
||||
state: present
|
||||
- name: Get VirtualBox APT key
|
||||
become: true
|
||||
get_url:
|
||||
url: https://www.virtualbox.org/download/oracle_vbox_2016.asc
|
||||
dest: /etc/apt/trusted.gpg.d/oracle_vbox_2016.asc
|
||||
- name: Install VirtualBox APT repository
|
||||
become: true
|
||||
apt_repository:
|
||||
repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/oracle_vbox_2016.asc] https://download.virtualbox.org/virtualbox/debian {{ ansible_distribution_release }} contrib"
|
||||
state: present
|
||||
- name: Update repositories
|
||||
become: true
|
||||
apt:
|
||||
|
@ -35,7 +5,7 @@
|
|||
state: latest
|
||||
update_cache: yes
|
||||
cache_valid_time: 86400 # One day
|
||||
- name: Install global packages
|
||||
- name: Install APT packages
|
||||
become: true
|
||||
apt:
|
||||
state: latest
|
||||
|
@ -43,7 +13,6 @@
|
|||
- git
|
||||
- make
|
||||
- keepassxc
|
||||
- zsh
|
||||
- ripgrep
|
||||
- curl
|
||||
- unzip
|
||||
|
@ -51,89 +20,14 @@
|
|||
- libreoffice-impress
|
||||
- libreoffice-writer
|
||||
- gimp
|
||||
- signal-desktop
|
||||
- nextcloud-desktop
|
||||
- codium
|
||||
- tree
|
||||
- virtualbox-6.1
|
||||
- wireshark
|
||||
# Erlang stuff: https://github.com/asdf-vm/asdf-erlang#before-asdf-install
|
||||
- build-essential
|
||||
- autoconf
|
||||
- m4
|
||||
- libncurses5-dev
|
||||
- libwxgtk3.0-gtk3-dev
|
||||
- libwxgtk-webview3.0-gtk3-dev
|
||||
- libgl1-mesa-dev
|
||||
- libglu1-mesa-dev
|
||||
- libpng-dev
|
||||
- libssh-dev
|
||||
- unixodbc-dev
|
||||
- xsltproc
|
||||
- fop
|
||||
- libxml2-utils
|
||||
- libncurses-dev
|
||||
- openjdk-11-jdk
|
||||
# Neovim stuff: https://github.com/neovim/neovim/wiki/Building-Neovim#build-prerequisites
|
||||
- ninja-build
|
||||
- gettext
|
||||
- libtool
|
||||
- libtool-bin
|
||||
- automake
|
||||
- cmake
|
||||
- g++
|
||||
- pkg-config
|
||||
- doxygen
|
||||
- name: Set default shell to zsh
|
||||
become: true
|
||||
user:
|
||||
name: "{{ ansible_user_id }}"
|
||||
shell: /usr/bin/zsh
|
||||
- name: Install .gitconfig
|
||||
template:
|
||||
src: "{{ role_path }}/templates/.gitconfig.j2"
|
||||
dest: ~/.gitconfig
|
||||
- name: Install asdf
|
||||
git:
|
||||
repo: https://github.com/asdf-vm/asdf.git
|
||||
dest: ~/.asdf
|
||||
- name: Install .zshrc
|
||||
template:
|
||||
src: "{{ role_path }}/templates/.zshrc.j2"
|
||||
dest: ~/.zshrc
|
||||
- name: Install asdf Erlang plugin
|
||||
shell: asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git
|
||||
args:
|
||||
creates: ~/.asdf/plugins/erlang
|
||||
- name: Install asdf Elixir plugin
|
||||
shell: asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
|
||||
args:
|
||||
creates: ~/.asdf/plugins/elixir
|
||||
- name: Install Regolith Xresources file
|
||||
template:
|
||||
src: "{{ role_path }}/templates/Xresources.j2"
|
||||
dest: ~/.config/regolith2/Xresources
|
||||
- name: Check VSCodium extensions
|
||||
setup:
|
||||
fact_path: "{{ role_path }}/facts"
|
||||
- name: Install VSCodium extensions
|
||||
shell: "codium --install-extension {{ item }}"
|
||||
loop: "{{ vscodium_extensions | difference(ansible_facts.ansible_local.vscodium_extensions) }}"
|
||||
- name: Pull neovim repository
|
||||
become: true
|
||||
git:
|
||||
repo: https://github.com/neovim/neovim.git
|
||||
dest: ~/neovim
|
||||
- name: Build neovim
|
||||
become: true
|
||||
make:
|
||||
chdir: ~/neovim
|
||||
params:
|
||||
CMAKE_BUILD_TYPE: RelWithDebInfo
|
||||
changed_when: false # I lie a bit, but neovim makefile doesn't cooperate
|
||||
- name: Install neovim
|
||||
become: true
|
||||
make:
|
||||
chdir: ~/neovim
|
||||
target: install
|
||||
changed_when: false # Idem
|
||||
|
|
|
@ -1,58 +0,0 @@
|
|||
# Set up the prompt
|
||||
|
||||
autoload -Uz promptinit
|
||||
promptinit
|
||||
prompt adam1
|
||||
|
||||
setopt histignorealldups sharehistory
|
||||
|
||||
# Use emacs keybindings even if our EDITOR is set to vi
|
||||
bindkey -e
|
||||
|
||||
# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
|
||||
HISTSIZE=1000
|
||||
SAVEHIST=1000
|
||||
HISTFILE=~/.zsh_history
|
||||
|
||||
# Use modern completion system
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
|
||||
zstyle ':completion:*' auto-description 'specify: %d'
|
||||
zstyle ':completion:*' completer _expand _complete _correct _approximate
|
||||
zstyle ':completion:*' format 'Completing %d'
|
||||
zstyle ':completion:*' group-name ''
|
||||
zstyle ':completion:*' menu select=2
|
||||
eval "$(dircolors -b)"
|
||||
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
|
||||
zstyle ':completion:*' list-colors ''
|
||||
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
|
||||
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
|
||||
zstyle ':completion:*' menu select=long
|
||||
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
|
||||
zstyle ':completion:*' use-compctl false
|
||||
zstyle ':completion:*' verbose true
|
||||
|
||||
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
|
||||
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
|
||||
|
||||
# Git aliases
|
||||
alias gp='git push'
|
||||
alias gco='git checkout'
|
||||
alias gd='git diff'
|
||||
alias gc='git commit'
|
||||
alias gpl='git pull'
|
||||
alias gs='git status'
|
||||
alias gb='git branch'
|
||||
alias ga='git add'
|
||||
alias gl='git log'
|
||||
|
||||
# asdf
|
||||
. $HOME/.asdf/asdf.sh
|
||||
fpath=(${ASDF_DIR}/completions $fpath)
|
||||
autoload -Uz compinit && compinit
|
||||
|
||||
# For neovim
|
||||
PATH=$PATH:/usr/local
|
||||
alias vi='nvim'
|
||||
alias vim='nvim'
|
Reference in a new issue