-
Notifications
You must be signed in to change notification settings - Fork 33
/
main.yml
720 lines (534 loc) · 22.1 KB
/
main.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
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
---
- hosts: localhost
connection: local
roles:
#############################################################################
# Foundational ##############################################################
#############################################################################
- role: homebrew
tags: [foundational, package-and-build, homebrew]
# Depends on homebrew.
- role: git
tags: [foundational, brew-pkg, git]
# Depends on homebrew.
- role: gnu-command-line-tools
tags: [foundational, brew-pkg, gnu-command-line-tools]
# Depends on homebrew.
- role: make
tags: [foundational, package-and-build, brew-pkg, make]
- role: cmake
tags: [foundational, package-and-build, bespoke-pkg, cmake]
vars:
# https://cmake.org/download/
cmake_version: "3.22.0"
- role: llvm
tags: [foundational, package-and-build, brew-pkg, llvm]
- role: openssl
tags: [foundational, package-and-build, brew-pkg, openssl]
# Depends on homebrew.
- role: bash
tags: [foundational, brew-pkg, programming-languages, bash]
- role: python3
tags: [foundational, programming-languages, bespoke-pkg, python3]
vars:
# NOTE: update PYTHON_VERSION in Makefile when changing this.
# https://www.python.org/ftp/python/
python3_version: "3.11.2"
# 11 is a "Universal 2" binary which works on Apple Silicon.
# 10.9 does not work on Apple Silicon.
python3_macos_version: "11" # this is used in the .pkg file name.
python3_version_major_minor: "{{ python3_version | regex_replace('^([0-9]+)\\.([0-9]+)(?:\\.[0-9]+)?$', '\\1.\\2') }}"
- role: mac-ports
tags: [foundational, package-and-build, bespoke-pkg, mac-ports]
vars:
# https://www.macports.org/install.php
macports_version: "2.7.1"
macports_mac_release: "12-Monterey"
- role: node
tags: [foundational, programming-languages, bespoke-pkg, node]
vars:
# https://nodejs.org/dist/
# https://github.com/nodejs/node/releases
node_version: "21.1.0"
- role: maven
tags: [foundational, package-and-build, brew-pkg, maven]
#############################################################################
# Fonts #####################################################################
#############################################################################
- role: font-hack
tags: [fonts, brew-cask-pkg, font-hack]
- role: consolas
tags: [fonts, bespoke-pkg, consolas]
#############################################################################
# Configuration #############################################################
#############################################################################
- role: ssh-keys
tags: [configuration, ssh-keys, uses-secrets]
- role: better-touch-tool
tags: [configuration, bespoke-pkg, better-touch-tool, uses-secrets]
vars:
# https://folivora.ai/releases
better_touch_tool_version: "" # using latest
- role: dotfiles
tags: [configuration, dotfiles, uses-secrets]
- role: dotemacs
tags: [configuration, dotemacs]
# IMPORTANT #################################################################
- role: build-emacs
tags: [text-editors, brew-pkg, build-emacs]
# NOTE: trying it out with Monterey (should be at least 2.1.0).
- role: openzfs
tags: [system-tools, brew-cask-pkg, openzfs]
#############################################################################
# Programming languages #####################################################
#############################################################################
- role: clojure
tags: [programming-languages, brew-pkg, clojure]
- role: java
tags: [programming-languages, brew-cask-pkg, java]
vars:
java_version: adoptopenjdk16
- role: go
tags: [programming-languages, bespoke-pkg, go]
vars:
# https://go.dev/dl/
go_version: "1.22.2"
- role: rust
tags: [programming-languages, rust]
- role: ruby
tags: [programming-languages, ruby]
vars:
ruby_version: 3.2.1
- role: lua
tags: [programming-languages, brew-pkg, lua]
- role: luajit
tags: [programming-languages, brew-pkg, luajit]
- role: octave
tags: [programming-languages, brew-pkg, octave]
- role: r
tags: [programming-languages, bespoke-pkg, r]
vars:
r_version: "4.1.2"
- role: haskell
tags: [disabled, programming-languages, brew-pkg, haskell]
- role: dotnet-sdk
tags: [programming-languages, brew-cask-pkg, dotnet-sdk]
# DISABLED: `stack install purescript` is currently failing, disabling until
# I figure it out.
# https://gist.github.com/mpereira/a2418c458418cd01a2d18301eaeae85e
- role: purescript
tags: [disabled, programming-languages, purescript]
#############################################################################
# Text editors ##############################################################
#############################################################################
- role: emacs-pre-built
tags: [text-editors, bespoke-pkg, emacs-pre-built]
vars:
emacs_pre_built_version: "28.2"
emacs_pre_built_patch: ""
# emacs_pre_built_version: "26.1-rc1"
# emacs_pre_built_pretest: "yes"
# DISABLED: Vim isn't compiling with Python 3.10.
- role: vim
tags: [disabled, text-editors, bespoke-pkg, vim]
vars:
vim_version: "8.2"
- role: neovim
tags: [disabled, text-editors, bespoke-pkg, neovim]
vars:
# https://github.com/neovim/neovim/releases
neovim_version: "0.5.1"
- role: vscode
tags: [text-editors, brew-pkg, vscode]
- role: rider
tags: [text-editors, brew-cask-pkg, rider]
- role: macvim
tags: [disabled, text-editors, bespoke-pkg, macvim]
vars:
# https://github.com/macvim-dev/macvim/releases
macvim_version: "snapshot-172"
#############################################################################
# Behaviors #################################################################
#############################################################################
- role: caps-lock-remapped-to-control
tags: [behaviors, caps-lock-remapped-to-control]
#############################################################################
# Security ##################################################################
#############################################################################
# DISABLED: Apple security stuff is good enough.
- role: prey
tags: [disabled, security, bespoke-pkg, prey, uses-secrets]
vars:
# https://github.com/prey/prey-node-client/releases
prey_version: "1.9.13"
- role: vault
tags: [security, npm-pkg, vault]
vars:
# https://www.npmjs.com/package/vault
vault_version: "0.3.0"
- role: gnupg
tags: [security, bespoke-pkg, gnupg]
vars:
gnupg_version: "2.3.3"
############################################################################
# Observability ############################################################
############################################################################
- role: glances
tags: [observability, pip-pkg, glances]
- role: ngrep
tags: [observability, brew-pkg, ngrep]
- role: jmeter
tags: [observability, brew-pkg, jmeter]
- role: htop
tags: [observability, brew-pkg, htop]
- role: vtop
tags: [observability, npm-pkg, vtop]
- role: wireshark
tags: [observability, brew-cask-pkg, wireshark]
############################################################################
# Data Systems #############################################################
############################################################################
# DISABLED: I'm not using this these days and its `yarn` binary conflicts
# with the "yarn" JavaScript package manager.
- role: hadoop
tags: [disabled, data-systems, brew-pkg, hadoop]
############################################################################
# Document processing and plotting #########################################
############################################################################
- role: mactex
tags: [mactex, brew-cask-pkg]
- role: gnuplot
tags: [gnuplot, brew-pkg]
############################################################################
# Markup tools #############################################################
############################################################################
- role: grip
tags: [markup-tools, pip-pkg, grip]
- role: wkhtmltopdf
tags: [markup-tools, brew-cask-pkg, wkhtmltopdf]
- role: hugo
tags: [markup-tools, brew-pkg, hugo]
vars:
# NOTE: version is not actually used because homebrew still can't
# install a versioned package.
hugo_version: "0.54.0"
- role: pandoc
tags: [markup-tools, brew-pkg, pandoc]
- role: markdown
tags: [markup-tools, brew-pkg, markdown]
############################################################################
# Desktop applications #####################################################
############################################################################
- role: grammarly
tags: [desktop-applications, brew-pkg, grammarly]
- role: zoom
tags: [desktop-applications, brew-pkg, zoom]
- role: elgato-dock
tags: [desktop-applications, bespoke-pkg, elgato-dock]
vars:
elgato_dock_version: "1.2.10.131_40"
- role: istat-menus
tags: [desktop-applications, brew-cask-pkg, istat-menus, uses-secrets]
- role: daisydisk
tags: [desktop-applications, brew-cask-pkg, daisydisk, uses-secrets]
- role: pdf-expert
tags: [desktop-applications, brew-cask-pkg, pdf-expert]
- role: flux
tags: [desktop-applications, brew-cask-pkg, flux]
- role: whatsapp
tags: [desktop-applications, brew-cask-pkg, whatsapp]
- role: toggle-dark-mode
tags: [desktop-applications, toggle-dark-mode]
- role: cursorcerer
tags: [desktop-applications, brew-cask-pkg, cursorcerer]
- role: maccy
tags: [desktop-applications, brew-cask-pkg, maccy]
- role: licecap
tags: [desktop-applications, bespoke-pkg, licecap]
vars:
licecap_version: "" # not configurable at the moment
- role: unity-hub
tags: [desktop-applications, bespoke-pkg, unity-hub]
- role: unity
tags: [desktop-applications, bespoke-pkg, unity]
vars:
unity_version: "2022.2.9"
- role: xquartz
tags: [desktop-applications, bespoke-pkg, xquartz]
vars:
# https://www.xquartz.org/
xquartz_version: "2.8.1"
- role: rescuetime
tags: [desktop-applications, bespoke-pkg, rescuetime]
# TODO: upgrade to xbar: https://github.com/matryer/xbar/issues/607.
- role: xbar
tags: [desktop-applications, bespoke-pkg, xbar]
vars:
# https://github.com/matryer/xbar/releases
xbar_version: "v2.1.7-beta"
- role: xbar-plugins
tags: [desktop-applications, xbar, xbar-plugins]
- role: divvy
tags: [disabled, desktop-applications, bespoke-pkg, divvy]
- role: android-file-transfer
tags: [disabled, desktop-applications, bespoke-pkg, android-file-transfer]
- role: dropbox
tags: [disabled, desktop-applications, bespoke-pkg, dropbox]
- role: google-chrome
tags: [desktop-applications, brew-cask-pkg, google-chrome]
- role: firefox
tags: [desktop-applications, bespoke-pkg, firefox]
vars:
firefox_version: "latest"
# - role: google-chrome-as-default-browser
# tags: [desktop-applications, google-chrome-as-default-browser]
- role: skype
tags: [disabled, desktop-applications, bespoke-pkg, skype]
- role: slack
tags: [desktop-applications, brew-cask-pkg, slack]
- role: spotify
tags: [desktop-applications, bespoke-pkg, spotify]
- role: steam
tags: [desktop-applications, bespoke-pkg, steam]
- role: teensy-loader
tags: [desktop-applications, bespoke-pkg, teensy-loader]
# DISABLED: the YNAB 4 binary isn't available in the YNAB website anymore.
- role: ynab
tags: [disabled, desktop-applications, bespoke-pkg, ynab]
vars:
ynab_version: "4.3.855"
- role: google-photos
tags: [disabled, desktop-applications, bespoke-pkg, google-photos]
- role: dash
tags: [desktop-applications, bespoke-pkg, dash]
- role: persephone
tags: [desktop-applications, bespoke-pkg, persephone]
vars:
persephone_version: 0.18.0-alpha
- role: vlc
tags: [desktop-applications, bespoke-pkg, vlc]
vars:
# http://download.videolan.org/pub/videolan/vlc/
vlc_version: "3.0.18"
- role: elgato-control-center
tags: [desktop-applications, brew-pkg, elgato-control-center]
- role: zwift
tags: [desktop-applications, brew-pkg, zwift]
#############################################################################
# Programming utilities #####################################################
#############################################################################
- role: rust-analyzer
tags: [programming-utilities, brew-pkg, rust-analyzer]
- role: clojure-lsp
tags: [programming-utilities, bespoke-pkg, clojure-lsp]
- role: black
tags: [programming-utilities, pip-pkg, black]
- role: ktlint
tags: [programming-utilities, bespoke-pkg, ktlint]
- role: ctags
tags: [programming-utilities, brew-pkgm ctags]
- role: gron
tags: [programming-utilities, bespoke-pkg, gron]
vars:
gron_version: "0.6.1"
- role: zprint
tags: [programming-utilities, bespoke-pkg, zprint]
vars:
# https://github.com/kkinnear/zprint/releases
zprint_version: "1.2.7"
- role: yapf
tags: [programming-utilities, pip-pkg, yapf]
- role: pcsv
tags: [programming-utilities, pip-pkg, pcsv]
- role: prettier
tags: [programming-utilities, npm-pkg, prettier]
- role: node-cljfmt
tags: [programming-utilities, npm-pkg, node-cljfmt]
- role: yq
tags: [programming-utilities, bespoke-pkg, yq]
- role: shfmt
tags: [programming-utilities, brew-pkg, shfmt]
# DISABLED: it fails to install on Monterey because a dependency
# (pywatchman) isn't building correctly.
- role: pyre-check
tags: [disabled, programming-utilities, pip-pkg, pyre-check]
- role: shellcheck
tags: [programming-utilities, brew-pkg, shellcheck]
#############################################################################
# Shell #####################################################################
#############################################################################
- role: babashka
tags: [shell, bespoke-pkg, babashka]
- role: zsh
tags: [shell, brew-pkg, zsh]
- role: fish
tags: [shell, brew-pkg, fish]
- role: fish-foreign-env
tags: [shell, bespoke-pkg, fish, fish-foreign-env]
- role: iterm
tags: [shell, brew-cask-pkg, iterm]
- role: tmux
tags: [shell, brew-pkg, tmux]
- role: tmuxinator
tags: [shell, gem-pkg, tmux, tmuxinator]
#############################################################################
# Package managers and build tools ##########################################
#############################################################################
- role: yarn
tags: [package-and-build, brew-pkg, yarn]
- role: pulp
tags: [package-and-build, npm-pkg, pulp]
- role: bundler
tags: [package-and-build, gem-pkg, bundler]
- role: graalvm
tags: [disabled, package-and-build, bespoke-pkg, graalvm]
vars:
graalvm_version: "21.3.0"
# NOTE: depends on 'java'.
- role: leiningen
tags: [package-and-build, brew-pkg, leiningen]
#############################################################################
# Virtualization, provisioning, containers and system tools #################
#############################################################################
# DISABLED: haven't used VirtualBox in a while.
- role: virtualbox
tags: [disabled, system-tools, bespoke-pkg, virtualbox]
vars:
# Wait until Vagrant fixes this issue before upgrading to 5.2
# https://github.com/hashicorp/vagrant/issues/9090
# virtualbox_version: "5.2.0"
# virtualbox_build: "118431"
virtualbox_version: "6.0.2"
virtualbox_build: "128162"
# DISABLED: haven't used Vagrant in a while.
- role: vagrant
tags: [disabled, system-tools, bespoke-pkg, vagrant]
vars:
vagrant_version: "2.2.14"
# DISABLED: haven't used Vagrant in a while.
- role: vagrant-vbguest
tags: [disabled, system-tools, vagrant-pkg, vagrant, vagrant-vbguest]
vars:
vagrant_vbguest_version: "0.29.0"
- role: orbstack
tags: [system-tools, brew-cask-pkg, orbstack]
- role: terraform
tags: [system-tools, bespoke-pkg, terraform]
vars:
# https://releases.hashicorp.com/terraform/
terraform_version: "1.4.0"
terraform_checksum: "sha256:ec02ccdcc368ce307d03c1e981f3a863d9c07b312635d4aca24159ada7657562"
- role: kubectl
tags: [system-tools, bespoke-pkg, kubernetes, kubectl]
vars:
kubectl_version: "1.26.2"
- role: krew
tags: [system-tools, bespoke-pkg, kubernetes, krew]
- role: gcloud
tags: [system-tools, bespoke-pkg, gcloud]
vars:
gcloud_version: "472.0.0"
- role: kubectl-tree
tags: [system-tools, krew-pkg, kubernetes, kubectl-tree]
############################################################################
# Browser plugins ##########################################################
############################################################################
- role: firefox-adblock-plus
tags: [bespoke-pkg, firefox-adblock-plus]
############################################################################
# Multimedia ###############################################################
############################################################################
- role: beets
tags: [multimedia, pip-pkg, beets]
- role: ffmpeg
tags: [multimedia, brew-pkg, ffmpeg]
- role: imagemagick
tags: [multimedia, brew-pkg, imagemagick]
- role: gifsicle
tags: [multimedia, brew-pkg, gifsicle]
- role: mpg123
tags: [multimedia, brew-pkg, mpg123]
- role: mpd
tags: [multimedia, brew-pkg, mpd]
- role: mpc
tags: [multimedia, brew-pkg, mpc]
- role: mpdscribble
tags: [multimedia, brew-pkg, mpdscribble]
- role: shpotify
tags: [multimedia, brew-pkg, shpotify]
- role: mplayer
tags: [multimedia, brew-pkg, mplayer]
- role: taglib
tags: [multimedia, brew-pkg, taglib]
#############################################################################
# Command line tools ########################################################
#############################################################################
- role: pngpaste
tags: [command-line-tools, brew-pkg, pngpaste]
- role: git-delta
tags: [command-line-tools, brew-pkg, git-delta]
- role: xz
tags: [command-line-tools, brew-pkg, xz]
- role: p7zip
tags: [command-line-tools, brew-pkg, p7zip]
- role: awscli
tags: [command-line-tools, pip-pkg, awscli, uses-secrets]
- role: gh
tags: [command-line-tools, brew-pkg, gh, contextualize]
- role: vercel
tags: [command-line-tools, npm-pkg, vercel, contextualize]
- role: stripe-cli
tags: [command-line-tools, npm-pkg, stripe-cli, contextualize]
- role: local-ssl-proxy
tags: [command-line-tools, npm-pkg, local-ssl-proxy, contextualize]
# DISABLED: using awscli instead.
- role: s3cmd
tags: [disabled, command-line-tools, s3cmd, uses-secrets]
- role: defaultbrowser
tags: [command-line-tools, git-pkg, defaultbrowser]
vars:
defaultbrowser_version: "1.1"
- role: jq
tags: [command-line-tools, bespoke-pkg, jq]
- role: tree
tags: [command-line-tools, brew-pkg, tree]
- role: scc
tags: [command-line-tools, brew-pkg, scc]
- role: pgsanity
tags: [command-line-tools, pip-pkg, pgsanity]
- role: ripgrep
tags: [command-line-tools, brew-pkg, ripgrep]
- role: fd
tags: [command-line-tools, brew-pkg, fd]
- role: parallel
tags: [command-line-tools, brew-pkg, parallel]
- role: tealdeer
tags: [command-line-tools, cargo-pkg, tealdeer]
- role: wrk
tags: [command-line-tools, brew-pkg, wrk]
- role: websocat
tags: [command-line-tools, bespoke-pkg, websocat]
- role: terminal-notifier
tags: [command-line-tools, brew-pkg, terminal-notifier]
#############################################################################
# Miscellaneous #############################################################
#############################################################################
- role: chromedriver
tags: [brew-cask-pkg, brew-cask-pkg-versioned, chromedriver]
vars:
# Version 116.0.5845.96.
# https://github.com/Homebrew/homebrew-cask/blob/master/Casks/c/chromedriver.rb
git_commit_ref: "b9ee893f20b4183f9cf7e204ea408c2b11c42ca2"
- role: mutagen
tags: [brew-pkg, mutagen]
# DISABLED: this was only necessary to build Cantata I think?
- role: qt5
tags: [disabled, bespoke-pkg, qt5]
vars:
qt_major_minor_version: "5.12"
qt_version: "{{ qt_major_minor_version }}.0"
- role: fontforge
tags: [brew-pkg, fontforge]
# Depends on xquartz.
- role: wordnet
tags: [brew-pkg, wordnet]