-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.yml
75 lines (73 loc) · 2.72 KB
/
setup.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
- hosts: localhost
connection: local
vars:
user: 'jek'
home: '/home/{{ user }}'
gopath: '/usr/local/go/bin/go'
tasks:
- name: Install packages
become: yes
package:
name: '{{ item }}'
state: present
loop:
- zsh
- htop
- gnome-tweak-tool
- gnome-extensions-app
- fira-code-fonts
- neovim
- bat
- exa
- fzf
- git-delta
- ripgrep
- fd-find
- g++
- alacritty
- tmux
- zoxide
- gitui
- pandoc
- name: Install starship
ansible.builtin.shell: sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- -y
- name: Install fnm
ansible.builtin.shell: 'curl -fsSL https://fnm.vercel.app/install | bash -s -- --skip-shell'
- name: Install sdkman
ansible.builtin.shell: 'curl -s "https://get.sdkman.io" | bash'
- name: Install difftastic
ansible.builtin.shell: 'cargo install difftastic'
- name: Install atuin
ansible.builtin.shell: 'cargo install atuin'
- name: Create config folders
file:
path: '{{ item }}'
state: directory
recurse: yes
owner: '{{ user }}'
loop:
- '{{ home }}/.config/nvim'
- '{{ home }}/.config/nvim/lua'
- '{{ home }}/.config/nvim/lua/config'
- name: Set up config symlinks
file:
src: '{{ playbook_dir }}/{{ item.src }}'
dest: '{{ item.dest }}'
state: link
owner: '{{ user }}'
with_items:
- { src: 'starship.toml', dest: '{{ home }}/.config/starship.toml'}
- { src: '.alacritty.yml', dest: '{{ home }}/.alacritty.yml'}
- { src: '.gitconfig', dest: '{{ home }}/.gitconfig'}
- { src: '.tmux.conf', dest: '{{ home }}/.tmux.conf'}
- { src: 'nvim/init.lua', dest: '{{ home }}/.config/nvim/init.lua'}
- { src: 'nvim/lua/options.lua', dest: '{{ home }}/.config/nvim/lua/options.lua'}
- { src: 'nvim/lua/plugins.lua', dest: '{{ home }}/.config/nvim/lua/plugins.lua'}
- { src: 'nvim/lua/autocmd.lua', dest: '{{ home }}/.config/nvim/lua/autocmd.lua'}
- { src: 'nvim/lua/mappings.lua', dest: '{{ home }}/.config/nvim/lua/mappings.lua'}
- { src: 'nvim/lua/config/treesitter.lua', dest: '{{ home }}/.config/nvim/lua/config/treesitter.lua'}
- { src: 'nvim/lua/config/lsp.lua', dest: '{{ home }}/.config/nvim/lua/config/lsp.lua'}
- { src: 'nvim/lua/config/lsp-installer.lua', dest: '{{ home }}/.config/nvim/lua/config/lsp-installer.lua'}
- { src: 'nvim/lua/config/nvim-tree.lua', dest: '{{ home }}/.config/nvim/lua/config/nvim-tree.lua'}
- { src: '.zshrc', dest: '{{ home }}/.zshrc'}