This repository has been archived by the owner on Apr 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal.yml
390 lines (343 loc) · 16.3 KB
/
local.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
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
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
# =====================================================================
# Layered packages
#
# These should be used sparingly to install stuff that needs to be
# available system-wide and can't be used via toolboxes or Flatpak.
#packages_to_layer:
# - wireguard-tools
#packages_to_remove:
# - neovim
# =====================================================================
# Flatpaks
#
# All apps installed on the machine should come from here so that they
# can easily be installed into your home dir and have their updates
# managed by the OS.
#
# Helpful doco for overrides:
# https://docs.flatpak.org/en/latest/sandbox-permissions.html
# https://www.mankier.com/1/flatpak-override
flatpak_remotes:
- name: flathub
url: https://dl.flathub.org/repo/flathub.flatpakrepo
- name: flathub-beta
url: https://flathub.org/beta-repo/flathub-beta.flatpakrepo
flatpak_apps_to_install:
# for controlling permissions on all of the Flatpaks that I
# install onto my system. The permissions can also be 'set into
# stone' here by writing them as overrides.
- remote: flathub
package: com.github.tchx84.Flatseal
# A web browser that isn't installed at the system-level, and
# has some sandboxing to prevent it from having access to all
# of my stuff.
- remote: flathub
package: com.brave.Browser
overrides:
# remove some default filesystem access permissions
- { scope: user, setting: "--nofilesystem=host-etc" }
- { scope: user, setting: "--nofilesystem=xdg-music" }
- { scope: user, setting: "--nofilesystem=xdg-videos" }
- { scope: user, setting: "--nofilesystem=xdg-desktop" }
# whitelist ~/Documents read-only
- { scope: user, setting: "--filesystem=xdg-documents:ro" }
- { scope: user, setting: "--filesystem=home/.local/share/applications:create" }
- { scope: user, setting: "--filesystem=home/.local/share/icons:create" }
# another web browser, to be used for stuff where Brave doesn't
# work (e.g. if the blocking/anti-fingerprinting is too strict)
- remote: flathub
package: com.microsoft.Edge
overrides:
# remove some default filesystem access permissions
- { scope: user, setting: "--nofilesystem=host-etc" }
- { scope: user, setting: "--nofilesystem=xdg-music" }
- { scope: user, setting: "--nofilesystem=xdg-videos" }
- { scope: user, setting: "--nofilesystem=xdg-desktop" }
# whitelist ~/Documents read-only
- { scope: user, setting: "--filesystem=xdg-documents:ro" }
- { scope: user, setting: "--filesystem=home/.local/share/applications:create" }
- { scope: user, setting: "--filesystem=home/.local/share/icons:create" }
# for managing GNOME extensions easily
- remote: flathub
package: com.mattjakeman.ExtensionManager
# for opening encrypted vaults
- remote: flathub
package: org.cryptomator.Cryptomator
# for opening KeePass databases (e.g. so that I can open my
# encrypted vaults...)
- remote: flathub
package: org.keepassxc.KeePassXC
# so that I can listen to music without having to download it
- remote: flathub
package: com.spotify.Client
# flashcards; they help me remember things
- remote: flathub
package: net.ankiweb.Anki
# for quickly spinning up VMs
- remote: flathub
package: org.gnome.Boxes
# for managing my eBooks library
- remote: flathub
package: com.calibre_ebook.calibre
# for reading eBooks
- remote: flathub
package: com.github.johnfactotum.Foliate
# watching youtube videos and keeping track of youtube
# subscriptions without having to sign in
- remote: flathub
package: io.freetubeapp.FreeTube
- remote: flathub
package: com.mojang.Minecraft
# for remote desktop connections; I prefer this to the built-in
# GNOME app org.gnome.Connections
- remote: flathub
package: org.remmina.Remmina
- remote: flathub
package: org.onlyoffice.desktopeditors
# alternative to MPV
- remote: flathub
package: io.github.celluloid_player.Celluloid
flatpak_apps_to_remove:
- remote: fedora
package: org.gnome.Maps
- remote: fedora
package: org.gnome.Connections
- remote: fedora
package: org.gnome.Contacts
- remote: fedora
package: org.gnome.Calendar
# =====================================================================
# Standalone Applications
#
# These are applications that can't be found as Flatpaks (or are
# difficult to install as Flatpaks).
#
# Each application is fully contained in one file (realistically, this
# means that the applications are all 'AppImage' files).
standalone_applications:
- url: https://github.com/nextcloud/desktop/releases/download/v3.2.4/Nextcloud-3.2.4-x86_64.AppImage
checksum: sha256:5d0c13ba422c445c4a88cd45a1b38878daf67123552b0f4a6020a73734c47ce6
file_name: Nextcloud.AppImage
- url: https://github.com/neovim/neovim/releases/download/v0.7.2/nvim.appimage
checksum: sha256:33b5d020c730b6d1b5185b1306ead83b6b8f8fab0239e0580c72b5224a9658e1
file_name: nvim.AppImage
location: "{{ lookup('env', 'HOME') }}/.local/bin"
stale_days: 180
- url: https://raw.githubusercontent.com/xwmx/nb/6.11.2/nb
checksum: sha256:b70d774517802dd7ceb38eb27f5f027a496bc753050223ff999e29d641b9b93b
file_name: nb
location: "{{ lookup('env', 'HOME') }}/.local/bin"
stale_days: 45
- url: https://raw.githubusercontent.com/dylanaraps/neofetch/7.1.0/neofetch
checksum: sha256:3dc33493e54029fb1528251552093a9f9a2894fcf94f9c3a6f809136a42348c7
file_name: neofetch
location: "{{ lookup('env', 'HOME') }}/.local/bin"
# find appropriate version here: https://github.com/marcosnils/bin/releases
bin_base_version: "0.15.1"
cli_apps:
- binary: exa
namespace: "github.com/ogham/exa"
- binary: rg
namespace: "github.com/burntsushi/ripgrep"
- binary: sysz
namespace: "github.com/joehillen/sysz"
- binary: ghq
namespace: "github.com/x-motemen/ghq"
- binary: bat
namespace: "github.com/sharkdp/bat"
- binary: sk
namespace: "github.com/lotabout/skim"
- binary: shellcheck
namespace: "github.com/koalaman/shellcheck"
- binary: gum
namespace: "github.com/charmbracelet/gum"
# the 'install' field is used when the name of the package that you're
# installing is different to the name/URL that you use to install it
pipx_apps:
- name: poetry
- name: ranger-fm
- name: yt-dlp
- name: browserexport
- name: toolbox-export
install: git+https://github.com/apatel762/toolbox-export.git
- name: cite
install: git+https://github.com/apatel762/cite.git
- name: pretty-history
install: git+https://github.com/apatel762/pretty-history.git
# - name: ptpython
# dependencies:
# - requests
# - pendulum
desktop_entries:
- app: code
entry: code.desktop
# =====================================================================
# GNOME config
#
# https://opensource.com/article/18/5/manage-your-workstation-ansible-part-3
#
# Use `dconf dump /` to see all of your GNOME config. You could even
# do something like:
#
# dconf dump / > before.txt
# dconf dump / > after.txt
# diff --unified --color before.txt after.txt
#
# if you're not sure what changes you want to do (you would make the
# changes manually and see what is different in the `dconf` output
# before and after)
dconf_settings:
# the apps that appear in the dock when you press the 'super' key
- key: /org/gnome/shell/favorite-apps
value: "['com.brave.Browser.desktop', 'com.spotify.Client.desktop', 'org.keepassxc.KeePassXC.desktop', 'org.cryptomator.Cryptomator.desktop', 'code.desktop', 'org.gnome.Nautilus.desktop', 'net.ankiweb.Anki.desktop']"
# ensure that the night light feature is configured how I like it
- key: /org/gnome/settings-daemon/plugins/color/night-light-enabled
value: "true"
- key: /org/gnome/settings-daemon/plugins/color/night-light-schedule-automatic
value: "true"
- key: /org/gnome/settings-daemon/plugins/color/night-light-temperature
value: "uint32 1700"
##################
# custom hotkeys #
##################
# hotkey to open a terminal with the 'Toolbox' profile
- key: /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/name
value: "'toolbox'"
- key: /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/command
value: "'gnome-terminal --profile=Toolbox'"
- key: /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/binding
value: "'<Primary><Alt>f'"
# hotkey to open a host terminal
- key: /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/name
value: "'terminal'"
- key: /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/command
value: "'gnome-terminal --profile=Host'"
- key: /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/binding
value: "'<Primary><Alt>t'"
# finalise custom keybindings
- key: /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings
value: "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/', '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/']"
#####################
# terminal profiles #
#####################
# colours taken from [Mayccoll/Gogh](https://github.com/Mayccoll/Gogh)
# host = ( 114 ) Mona Lisa
# toolbox = ( 157 ) Pixiefloss
- key: /org/gnome/terminal/legacy/profiles:/default
value: "'3593294f-b67f-4d64-b90e-5b7281edee75'"
- key: /org/gnome/terminal/legacy/profiles:/list
value: "['3593294f-b67f-4d64-b90e-5b7281edee75', 'c8908255-1368-4492-aa30-2cc2fbf3095a']"
##############################
# terminal profile - Toolbox #
##############################
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/allow-bold
value: "true"
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/audible-bell
value: "false"
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/background-color
value: "'#24241f1f3333'"
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/background-transparency-percent
value: "5"
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/bold-color
value: "'#d1d1cacae8e8'"
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/bold-color-same-as-fg
value: "true"
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/cursor-background-color
value: "'#d1d1cacae8e8'"
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/cursor-colors-set
value: "true"
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/cursor-foreground-color
value: "'#24241f1f3333'"
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/custom-command
value: "'toolbox enter main'"
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/default-size-columns
value: "140"
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/default-size-rows
value: "40"
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/foreground-color
value: "'#d1d1cacae8e8'"
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/highlight-colors-set
value: "true"
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/palette
value: "['#2f2f29294242', '#ffff85857f7f', '#4848b6b68585', '#e6e6c0c00000', '#aeae8181ffff', '#efef61615555', '#c2c2ffffdfdf', '#f8f8f8f8f2f2', '#757550507b7b', '#f1f156568e8e', '#5a5adbdba2a2', '#d5d5a4a42525', '#c5c5a3a3ffff', '#efef61615555', '#c2c2ffffffff', '#f8f8f8f8f0f0']"
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/title
value: "'Toolbox'"
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/title-mode
value: "'ignore'"
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/use-custom-command
value: "true"
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/use-system-font
value: "true"
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/use-theme-background
value: "false"
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/use-theme-colors
value: "false"
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/use-theme-transparency
value: "false"
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/use-transparent-background
value: "true"
- key: /org/gnome/terminal/legacy/profiles:/:c8908255-1368-4492-aa30-2cc2fbf3095a/visible-name
value: "'Toolbox'"
###########################
# terminal profile - Host #
###########################
- key: /org/gnome/terminal/legacy/profiles:/:3593294f-b67f-4d64-b90e-5b7281edee75/allow-bold
value: "true"
- key: /org/gnome/terminal/legacy/profiles:/:3593294f-b67f-4d64-b90e-5b7281edee75/audible-bell
value: "false"
- key: /org/gnome/terminal/legacy/profiles:/:3593294f-b67f-4d64-b90e-5b7281edee75/background-color
value: "'#12120b0b0d0d'"
- key: /org/gnome/terminal/legacy/profiles:/:3593294f-b67f-4d64-b90e-5b7281edee75/background-transparency-percent
value: "5"
- key: /org/gnome/terminal/legacy/profiles:/:3593294f-b67f-4d64-b90e-5b7281edee75/bold-color
value: "'#f7f7d6d66a6a'"
- key: /org/gnome/terminal/legacy/profiles:/:3593294f-b67f-4d64-b90e-5b7281edee75/bold-color-same-as-fg
value: "true"
- key: /org/gnome/terminal/legacy/profiles:/:3593294f-b67f-4d64-b90e-5b7281edee75/cursor-background-color
value: "'#f7f7d6d66a6a'"
- key: /org/gnome/terminal/legacy/profiles:/:3593294f-b67f-4d64-b90e-5b7281edee75/cursor-colors-set
value: "true"
- key: /org/gnome/terminal/legacy/profiles:/:3593294f-b67f-4d64-b90e-5b7281edee75/cursor-foreground-color
value: "'#12120b0b0d0d'"
- key: /org/gnome/terminal/legacy/profiles:/:3593294f-b67f-4d64-b90e-5b7281edee75/default-size-columns
value: "140"
- key: /org/gnome/terminal/legacy/profiles:/:3593294f-b67f-4d64-b90e-5b7281edee75/default-size-rows
value: "40"
- key: /org/gnome/terminal/legacy/profiles:/:3593294f-b67f-4d64-b90e-5b7281edee75/foreground-color
value: "'#f7f7d6d66a6a'"
- key: /org/gnome/terminal/legacy/profiles:/:3593294f-b67f-4d64-b90e-5b7281edee75/highlight-colors-set
value: "true"
- key: /org/gnome/terminal/legacy/profiles:/:3593294f-b67f-4d64-b90e-5b7281edee75/palette
value: "['#35351b1b0e0e', '#9b9b29291c1c', '#636362623232', '#c3c36e6e2828', '#51515c5c5d5d', '#9b9b1d1d2929', '#585880805656', '#f7f7d7d75c5c', '#878742422828', '#ffff43433131', '#b4b4b2b26464', '#ffff95956666', '#9e9eb2b2b4b4', '#ffff5b5b6a6a', '#8a8acdcd8f8f', '#ffffe5e59898']"
- key: /org/gnome/terminal/legacy/profiles:/:3593294f-b67f-4d64-b90e-5b7281edee75/title
value: "'Host'"
- key: /org/gnome/terminal/legacy/profiles:/:3593294f-b67f-4d64-b90e-5b7281edee75/title-mode
value: "'ignore'"
- key: /org/gnome/terminal/legacy/profiles:/:3593294f-b67f-4d64-b90e-5b7281edee75/use-system-font
value: "true"
- key: /org/gnome/terminal/legacy/profiles:/:3593294f-b67f-4d64-b90e-5b7281edee75/use-theme-background
value: "false"
- key: /org/gnome/terminal/legacy/profiles:/:3593294f-b67f-4d64-b90e-5b7281edee75/use-theme-colors
value: "false"
- key: /org/gnome/terminal/legacy/profiles:/:3593294f-b67f-4d64-b90e-5b7281edee75/use-theme-transparency
value: "false"
- key: /org/gnome/terminal/legacy/profiles:/:3593294f-b67f-4d64-b90e-5b7281edee75/use-transparent-background
value: "true"
- key: /org/gnome/terminal/legacy/profiles:/:3593294f-b67f-4d64-b90e-5b7281edee75/visible-name
value: "'Host'"
# =====================================================================
# OS updates
#
# https://github.com/j1mc/ansible-silverblue
#
# Manage the rpm-ostreed.conf settings; this is where I configure the
# automatic staging of updates, because I want the system to
# automatically check for updates AND stage them in the background. The
# changes should then be picked up the next time I reboot my machine.
#
# Use `sudo ostree admin config-diff` to see all changes to `/etc` from
# the base OS image.
#
# See `man rpm-ostreed.conf` for more info
update_policy: stage
idle_timeout: '60'