-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpost-playbook.yml
More file actions
304 lines (285 loc) · 6.39 KB
/
Copy pathpost-playbook.yml
File metadata and controls
304 lines (285 loc) · 6.39 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
# TODO Copy /etc files
# - pacman.conf
# - makepkg.conf
---
- name: "Basic machine setup"
hosts: localhost
gather_facts: no
connection: local
roles:
- kewlfft.aur
tasks:
- name: "Configure user: nenad"
tags: ["user"]
become: yes
user:
name: nenad
create_home: yes
group: users
groups: ["docker", "input", "wheel", "video", "wireshark"]
shell: /usr/bin/zsh
- name: "Configure user: nenad-home"
tags: ["user"]
become: yes
user:
name: nenad-home
create_home: yes
group: users
groups: ["docker", "input", "wheel", "video", "wireshark"]
shell: /usr/bin/zsh
- name: Create .config dir
tags: ["dotfiles"]
file:
path: "~/.config"
state: directory
- name: Create .gnupg dir
tags: ["dotfiles"]
file:
path: "~/.gnupg"
state: directory
mode: 0700
- name: Enable NetworkManager
tags: ["systemd"]
become: yes
systemd:
no_block: False
name: NetworkManager
enabled: True
state: started
scope: system
- name: Enable CUPS
tags: ["systemd"]
become: yes
systemd:
no_block: False
name: cups-browsed
enabled: True
state: started
scope: system
- name: Enable docker
tags: ["systemd"]
become: yes
systemd:
no_block: False
name: docker
enabled: True
state: stopped
scope: system
- name: Enable acpid
tags: ["systemd"]
become: yes
systemd:
no_block: False
name: acpid
enabled: True
state: started
scope: system
- name: Enable pipewire
tags: ["systemd", "systemd-user"]
systemd:
enabled: True
name: pipewire
state: started
scope: user
- name: Enable xdg-desktop-portal
tags: ["systemd", "systemd-user"]
systemd:
enabled: True
name: xdg-desktop-portal
state: started
scope: user
- name: Enable xdg-desktop-portal-wlr (for wayland)
tags: ["systemd", "systemd-user"]
systemd:
enabled: True
name: xdg-desktop-portal-wlr
state: started
scope: user
# Has to be done before we install any other package
- name: Install yay
tags: ["system"]
aur:
state: present
name:
- yay
- name: Update all packages
tags: ["update"]
aur:
upgrade: yes
- name: Install main packages
tags: ["apps"]
aur:
state: present
name:
# X and i3
- i3
- xorg-server
- polybar
- siji # font for polybar
- ttf-unifont # font for polybar
- rofi
- arandr
- dunst
- rofi-greenclip
# Community
- sway
- pavucontrol
- alacritty
- htop
- zsh
- zip
- nnn
- firefox
- docker
- docker-compose
- visual-studio-code-insiders-bin
- xorg-xwayland
- gopass
- calibre
- bemenu
- strace
- bemenu-wlroots
- fwupd
- thunderbird
- alsa-utils
- light
- waybar
- terminus-font
- virtualbox
- terminus-font-ttf # For Java apps
- otf-font-awesome
- ttf-roboto
- ttf-roboto-mono
- noto-fonts-emoji
- bc
- mako
- playerctl
- swaylock
- swayidle
- dbeaver
- wl-clipboard
- pacman-contrib
- vlc
- tldr
- nomacs
- libva-intel-driver
- libva-mesa-driver
- kubectl
- libnotify
- openvpn
- jq
- wireshark-qt
- acpid
- gnome-keyring
- grim
- slurp
- python-pip
- nmap
- bind-tools
- nm-connection-editor
- powertop
- kanshi
- pipewire
- libpipewire02
- pipewire-pulse
- jack2
- pipewire-jack
- kcachegrind
- chromium
- imagemagick
- graphviz
- python-libevdev
- python-pyudev
- libreoffice-fresh
- blueberry
- xorg-xeyes
- vulkan-headers
- libportal
- udisks2
- udiskie
- ntfs-3g
- gdb
- intellij-idea-community-edition
- cups
- mpv
- inetutils
- bluez-utils
- ethtool
- network-manager-applet
- krita
- gradle
- wlroots
- gammastep
- linux-headers
- anki
- intel-gpu-tools
- paperwork
- sane-airscan
- exfatprogs
- exfat-utils
- nethogs
- iw
- dhclient
- mtr
# AUR
- terminus-font-ttf
- goland
- goland-jre
- phpstorm
- phpstorm-jre
- yay
- zsh-theme-powerlevel10k-git
- j4-dmenu-desktop
- ydotool
- oh-my-zsh-git
- wdisplays
- wlogout
- xdg-desktop-portal-wlr
- swappy
- joplin-appimage
- v4l2loopback-dkms
- obs-v4l2sink
- clipman
- uhk-agent-appimage
# chaotic-aur
- visual-studio-code-insiders-bin
- name: Link .config dotfiles
tags: ["dotfiles"]
file:
src: "{{ item.root }}{{ item.path }}"
dest: "~/.config/{{ item.path }}"
state: link
force: yes
with_filetree:
- config/
when:
# Only list root-level directories
- "'/' not in item.path"
- item.state == "directory"
- name: Create home config directories and symlink all files
tags: ["dotfiles"]
file:
access_time: preserve
modification_time: preserve
src: '{{ (item.state == "file") | ternary(item.root+item.path, "") }}'
dest: "~/{{ item.path }}"
state: '{{ (item.state == "file") | ternary("link", "directory") }}'
force: yes
with_filetree:
- home/
- name: Create /etc config directories and symlink all files
tags: ["system-dotfiles"]
become: yes
file:
access_time: preserve
modification_time: preserve
src: '{{ (item.state == "file") | ternary(item.root+item.path, "") }}'
dest: "/etc/{{ item.path }}"
state: '{{ (item.state == "file") | ternary("link", "directory") }}'
force: yes
with_filetree:
- etc/
- name: Load extra playbook
tags: ["always"]
include: "{{ extra_playbook }}"
when: extra_playbook is defined