-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
341 lines (341 loc) · 9.73 KB
/
config.yaml
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
actions:
_install_package_control: '{{@@ _dotdrop_dotpath @@}}/../script/lib/install-package-control ~/"{{@@ sublime_home @@}}"'
_pyenv_install: |
if [ -d ~/.pyenv ]; then
git -C ~/.pyenv pull --prune origin;
else
git clone https://github.com/pyenv/pyenv.git ~/.pyenv;
fi
_goenv_install: |
if [ -d ~/.goenv ]; then
git -C ~/.goenv pull --prune origin;
else
git clone https://github.com/syndbg/goenv.git ~/.goenv;
fi
_iterm2_utils_install: |
if [ -d ~/.iterm2-shell-integration ]; then
git -C ~/.iterm2-shell-integration pull --prune origin;
else
git clone https://github.com/gnachman/iTerm2-shell-integration ~/.iterm2-shell-integration;
fi
config:
backup: true
create: true
force_chmod: true
link_dotfile_default: link
link_on_import: link
dotpath: dotfiles
upignore:
- .DS_Store
- .localized
cmpignore:
- .DS_Store
- .localized
dotfiles:
d_bin:
src: bin
dst: ~/bin
d_config_1Password:
src: config/1Password
dst: ~/.config/1Password
chmod: 700
link: link_children
d_config_gh:
src: config/gh
dst: ~/.config/gh
chmod: 700
link: link_children
d_config_glab_cli:
src: config/glab-cli
dst: ~/.config/glab-cli
chmod: 700
link: link_children
d_config_pip:
src: config/pip
dst: ~/.config/pip
link: link_children
d_git_template:
src: git-template
dst: ~/.git-template
link: nolink
d_gradle_init_d:
src: gradle/init.d
dst: ~/.gradle/init.d
link: link_children
d_oh-my-zsh-custom:
src: oh-my-zsh-custom
dst: ~/.oh-my-zsh-custom
link: link_children
chmod: 700
upignore:
- themes/powerlevel10k/*.zwc
cmpignore:
- themes/powerlevel10k/*.zwc
d_smbcredentials:
src: smbcredentials
dst: ~/.smbcredentials
link: link_children
chmod: 700
d_tea:
src: Library/Application Support/tea
dst: "{{@@ xdg_config_home @@}}/tea"
link: link_children
chmod: 700
d_user:
src: Library/Application Support/Sublime Text 3/Packages/User
dst: ~/{{@@ sublime_home @@}}/Packages/User
link: link_children
actions:
- _install_package_control
upignore:
- oscrypto-ca-bundle.crt
- Package Control.cache
- Package Control.last-run
- Package Control.merged-ca-bundle
- Package Control.user-ca-bundle
cmpignore:
- oscrypto-ca-bundle.crt
- Package Control.cache
- Package Control.last-run
- Package Control.merged-ca-bundle
- Package Control.user-ca-bundle
f_Alfred_prefs.json:
src: Alfred/prefs.json
dst: ~/Library/Application Support/Alfred/prefs.json
# f_Alfred_hotkey_prefs.plist:
# src: Alfred/hotkey/prefs.plist
# dst: ~/Library/Application Support/Alfred/Alfred.alfredpreferences/preferences/local/{{@@ alfred_preferences_localhash @@}}/hotkey/prefs.plist
f_bash_sessions_disable:
src: bash_sessions_disable
dst: ~/.bash_sessions_disable
f_bash_profile-for-zsh:
src: bash_profile-for-zsh
dst: ~/.bash_profile
f_com.googlecode.iterm2.plist:
src: config/iterm2/com.googlecode.iterm2.plist
dst: ~/.config/iterm2/com.googlecode.iterm2.plist
f_curlrc:
src: curlrc
dst: ~/.curlrc
f_finicky.js:
src: finicky.js
dst: ~/.finicky.js
f_gitconfig:
src: gitconfig
dst: ~/.gitconfig
f_gitconfig-shorteners:
src: gitconfig-shorteners
dst: ~/.gitconfig-shorteners
f_gitignore:
src: gitignore
dst: ~/.gitignore
f_gradle_properties:
src: gradle/gradle.properties
dst: ~/.gradle/gradle.properties
chmod: 600
f_hgrc:
src: hgrc
dst: ~/.hgrc
f_hushlogin:
src: hushlogin
dst: ~/.hushlogin
f_m2_settings_home:
src: m2/settings_home.xml
dst: ~/.m2/settings.xml
chmod: 600
link: nolink
f_netrc:
src: netrc
dst: ~/.netrc
chmod: 600
f_p10k.zsh:
src: p10k.zsh
dst: ~/.p10k.zsh
f_pypirc_home:
src: pypirc_home
dst: ~/.pypirc
chmod: 600
f_ssh_authorized_keys:
src: ssh/authorized_keys
dst: ~/.ssh/authorized_keys
f_ssh_config:
src: ssh/config
dst: ~/.ssh/config
f_ssh_known_hosts:
src: ssh/known_hosts
dst: ~/.ssh/known_hosts
f_sublime_license:
src: Library/Application Support/Sublime Text 3/Local/License.sublime_license
dst: ~/{{@@ sublime_home @@}}/Local/License.sublime_license
chmod: 600
link: nolink
f_tigrc:
src: tigrc
dst: ~/.tigrc
f_tmux.conf:
src: tmux.conf
dst: ~/.tmux.conf
f_vimrc:
src: vimrc
dst: ~/.vimrc
f_wgetrc:
src: wgetrc
dst: ~/.wgetrc
f_zshenv:
src: zshenv
dst: ~/.zshenv
f_zshrc:
src: zshrc
dst: ~/.zshrc
fake_pyenv:
src:
dst:
actions:
- _pyenv_install
fake_goenv:
src:
dst:
actions:
- _goenv_install
fake_iterm2_utils:
src:
dst:
actions:
- _iterm2_utils_install
profiles:
adams-mbp:
variables:
host_ssh_key_name: adams-mbp key
include:
- default
- mac
- personal
adams-mbp.local:
include:
- adams-mbp
adams-mbp.notcharlie.com:
include:
- adams-mbp
beelink:
include:
- default
- linux
variables:
host_ssh_key_name: beelink key
ssh_agent_lifetime: 12h
dynvariables:
synology_username: op read "op://Adam/m77teghqv2ec7xttb47j3qchsa/username"
synology_password: op read "op://Adam/m77teghqv2ec7xttb47j3qchsa/password"
dotfiles:
- d_smbcredentials
beelink.local:
include:
- beelink
beelink.notcharlie.com:
include:
- beelink
mac:
variables:
sublime_home: Library/Application Support/Sublime Text 3
mac: true
ssh_agent: "{{@@ env['HOME'] @@}}/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
xdg_config_home: "{{@@ env['HOME'] @@}}/Library/Application Support"
dotfiles:
- d_user
- f_Alfred_prefs.json
- f_com.googlecode.iterm2.plist
- f_finicky.js
- f_sublime_license
- fake_iterm2_utils
linux_desktop:
variables:
sublime_home: .config/sublime-text-3
ssh_agent: "{{@@ env['HOME'] @@}}/.1password/agent.sock"
dotfiles:
- d_user
- f_sublime_license
linux:
variables:
linux: true
xdg_config_home: ~/.config
dotfiles:
- d_config_pip
personal:
dotfiles:
- d_config_pip
- f_m2_settings_home
- f_pypirc_home
variables:
personal: true
default:
variables:
linux: false
mac: false
personal: false
ssh_agent: ''
ssh_agent_lifetime: 1h
host_ssh_key_name: Default key
dynvariables:
authorized_keys: op item list --tags allow-ssh --format=json | op item get - --field "public key" | sort | uniq
firefox_adam_ids: op item list --vault Adam --categories Login --format=json | jq -r '.[].id' | sort
firefox_adam_work_ids: op item list --vault "Adam @ Work" --categories Login --format=json | jq -r '.[].id' | sort
firefox_cara_ids: op item list --vault Cara --categories Login --format=json | jq -r '.[].id' | sort
firefox_cb_ids: op item list --vault CB --categories Login --format=json | jq -r '.[].id' | sort
firefox_jenny_ids: op item list --vault Jenny --categories Login --format=json | jq -r '.[].id' | sort
firefox_joint_ids: op item list --vault Joint --categories Login --format=json | jq -r '.[].id' | sort
firefox_kids_ro_ids: op item list --vault "Kids RO" --categories Login --format=json | jq -r '.[].id' | sort
firefox_private_ids: op item list --vault Private --categories Login --format=json | jq -r '.[].id' | sort
full_name: op item get 6jjizlkc5bstuors76ickhd7fa --fields "first name,last name" | tr ',' ' '
gh_cli_token: op read "op://jrew5nqtk5aqdgupcoxqjuevwu/GitHub/Section_E346B352A4E54313BBD97E6B371DF8FF/gh cli token"
gitea_hostname: "{{@@ gitea_website @@}} | sed 's|.*//||'"
gitea_maven_token: op read "op://jrew5nqtk5aqdgupcoxqjuevwu/44cpfo43uza4dguc5l52zcl6ku/Tokens/Maven token"
gitea_pypi_token: op read "op://jrew5nqtk5aqdgupcoxqjuevwu/44cpfo43uza4dguc5l52zcl6ku/Tokens/PyPI token"
gitea_username: op read "op://jrew5nqtk5aqdgupcoxqjuevwu/44cpfo43uza4dguc5l52zcl6ku/email"
gitea_website: op item get "Gitea (acourtneybrown)" --format json | jq -r '.urls[0].href'
github_account: op read "op://jrew5nqtk5aqdgupcoxqjuevwu/GitHub/login"
github_netrc_token: op read "op://jrew5nqtk5aqdgupcoxqjuevwu/GitHub/Section_E346B352A4E54313BBD97E6B371DF8FF/netrc"
github_signing_key: op read "op://Private/{{@@ host_ssh_key_name @@}}/public key"
gitlab_account: op read "op://jrew5nqtk5aqdgupcoxqjuevwu/GitLab/username"
glab_cli_token: op read "op://jrew5nqtk5aqdgupcoxqjuevwu/GitLab/Tokens/glab cli token"
homebrew_prefix: brew --prefix
personal_email: op read "op://Adam/6jjizlkc5bstuors76ickhd7fa/Internet Details/email"
sublime_text_license: op read "op://Adam/lewokobsx23vb6ncwce457sdvy/license key"
tea_cli_token: op read "op://jrew5nqtk5aqdgupcoxqjuevwu/44cpfo43uza4dguc5l52zcl6ku/Tokens/tea cli token"
include:
- zsh
zsh:
include:
- shared
dotfiles:
- d_oh-my-zsh-custom
- f_bash_profile-for-zsh
- f_p10k.zsh
- f_zshenv
- f_zshrc
shared:
dotfiles:
- d_bin
- d_config_1Password
- d_config_gh
- d_config_glab_cli
- d_git_template
- d_gradle_init_d
- d_tea
- f_bash_sessions_disable
- f_curlrc
- f_gitconfig
- f_gitconfig-shorteners
- f_gitignore
- f_gradle_properties
- f_hgrc
- f_hushlogin
- f_netrc
- f_ssh_authorized_keys
- f_ssh_config
- f_ssh_known_hosts
- f_tigrc
- f_tmux.conf
- f_vimrc
- f_wgetrc
- fake_goenv
- fake_pyenv