-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
282 lines (274 loc) · 8.62 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
config:
backup: true
create: true
banner: false
check_version: false
force_chmod: false
template_dotfile_default: true
showdiff: false
longkey: false
keepdot: false
link_dotfile_default: nolink
link_on_import: nolink
dotpath: dotfiles
workdir: ~/.config/dotfiles
import_variables:
- uservariables.yaml:optional
# default_actions:
# - create_local_file
cmpignore:
- "*/README.md"
upignore:
- "*/README.md"
instignore:
- "*/README.md"
impignore:
- "*/README.md"
variables:
HOME: "{{@@ env['HOME'] @@}}"
INSTALL_HOME: "{{@@ env['HOME'] @@}}"
REPO_HOME: "{{@@ env['PWD'] @@}}"
REPO_SCRIPT_PATH: "{{@@ env['PWD'] @@}}/scripts"
SSH_CONFIG: "ssh_config"
GIT_EMAIL_B64: "c2Rjc3dkQGdtYWlsLmNvbQ=="
GIT_NAME_B64: "RFc="
GITLAB_EMAIL_B64: "ZGkud2FuZ0BrZWsuanA="
USE_PROXY: "NO"
PROXY: ""
USE_GPG: "NO"
USE_PYENV: "NO"
USE_NERD_FONT: "NO"
GPG_KEY: "DF9D81D26E95ACF5"
GPG_KEY_GITLAB: "45B834BCEBCDEC22"
# dir_available: (test -d /tmp/cookiedir || mkdir -p /tmp/cookiedir)
# use this for saving disk space (really necessary?)
GIT_DEPTH: "5"
GIT_INSTALL_SH: "bash {{@@ REPO_SCRIPT_PATH @@}}/git_install.sh {{@@ GIT_DEPTH @@}}"
FONT_NAME: "SourceCodePro"
FONT_VERSION: "v3.1.1"
FONT_RUL: "https://github.com/ryanoasis/nerd-fonts/releases/download/{{@@ FONT_VERSION @@}}/{{@@ FONT_NAME @@}}.tar.xz"
dynvariables:
# USER: "echo $USER"
TMUX_VERSION: tmux -V | cut -f 2 -d " "
GIT_VERSION: git --version | cut -f 3 -d " "
EPICS_HOST_ARCH: bash {{@@ REPO_SCRIPT_PATH @@}}/epics_host_arch.sh
GIT_EMAIL: echo "{{@@ GIT_EMAIL_B64 @@}}" | base64 --decode
GIT_NAME: echo "{{@@ GIT_NAME_B64 @@}}" | base64 --decode
GITLAB_EMAIL: echo "{{@@ GITLAB_EMAIL_B64 @@}}" | base64 --decode
GITLAB_NAME: echo "{{@@ GIT_NAME_B64 @@}}" | base64 --decode
# test_dynvar1: >-
# echo "abc" $$
# echo "123"
uservariables:
# this will save user input value to uservariables.yaml
# GIT_EMAIL: "git_email"
# GIT_NAME: "git_name"
actions:
pre:
install_font:
post:
# create_local_file: test -e {{@@ INSTALL_HOME @@}}/.config/common/local.sh && touch {{@@ INSTALL_HOME @@}}/.config/common/local.sh
# check_and_create: test -e {0} || touch {0}
check_local_sh: test -e {{@@ INSTALL_HOME @@}}/.config/common/local.sh || touch {{@@ INSTALL_HOME @@}}/.config/common/local.sh
check_tcsh_local_sh: test -e {{@@ INSTALL_HOME @@}}/.tcshrc.local || touch {{@@ INSTALL_HOME @@}}/.tcshrc.local
# install_bash_it: test -e {{@@ INSTALL_HOME @@}}/.bash_it || (git clone --depth=1 https://github.com/Bash-it/bash-it.git {{@@ INSTALL_HOME @@}}/.bash_it)
install_tpm: "{{@@ GIT_INSTALL_SH @@}} https://github.com/tmux-plugins/tpm {{@@ INSTALL_HOME @@}}/.tmux/plugins/tpm"
install_bash_it: "{{@@ GIT_INSTALL_SH @@}} https://github.com/Bash-it/bash-it.git {{@@ INSTALL_HOME @@}}/.bash_it"
install_oh_my_zsh: "{{@@ GIT_INSTALL_SH @@}} https://github.com/robbyrussell/oh-my-zsh.git {{@@ INSTALL_HOME @@}}/.oh-my-zsh"
install_alacritty_theme: "{{@@ GIT_INSTALL_SH @@}} https://github.com/alacritty/alacritty-theme {{@@ INSTALL_HOME @@}}/.config/alacritty/themes"
# install_libmagic_macos: brew install libmagic
install_zsh_autosuggestions: "{{@@ GIT_INSTALL_SH @@}} https://github.com/zsh-users/zsh-autosuggestions {{@@ INSTALL_HOME @@}}/.oh-my-zsh/custom/plugins/zsh-autosuggestions"
install_zsh_completions: "{{@@ GIT_INSTALL_SH @@}} https://github.com/zsh-users/zsh-completions {{@@ INSTALL_HOME @@}}/.oh-my-zsh/custom/plugins/zsh-completions"
install_zsh_syntax_highlighting: "{{@@ GIT_INSTALL_SH @@}} https://github.com/zsh-users/zsh-syntax-highlighting {{@@ INSTALL_HOME @@}}/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting"
install_zsh_history_substring_search: "{{@@ GIT_INSTALL_SH @@}} https://github.com/zsh-users/zsh-history-substring-search {{@@ INSTALL_HOME @@}}/.oh-my-zsh/custom/plugins/zsh-history-substring-search"
install_pyenv: "{{@@ GIT_INSTALL_SH @@}} https://github.com/pyenv/pyenv.git {{@@ INSTALL_HOME @@}}/.pyenv"
install_pyenv_virtualenv: "{{@@ GIT_INSTALL_SH @@}} https://github.com/pyenv/pyenv-virtualenv.git {{@@ INSTALL_HOME @@}}/.pyenv/plugins/pyenv-virtualenv"
# clean_all: rm -rf {{@@ INSTALL_HOME @@}}/.config/alacritty {{@@ INSTALL_HOME @@}}/.oh-my-zsh {{@@ INSTALL_HOME @@}}/.bash_it {{@@ INSTALL_HOME @@}}/.tmux/plugins/tpm {{@@ INSTALL_HOME @@}}/.pyenv
dotfiles:
d_common:
src: common
dst: "{{@@ INSTALL_HOME @@}}/.config/common"
chmod: "744"
ignore_missing_in_dotdrop: true
actions:
- check_local_sh
f_pyenv:
src: pyenv/pyenv.sh
dst: "{{@@ INSTALL_HOME @@}}/.pyenv.sh"
chmod: "744"
actions:
- install_pyenv
- install_pyenv_virtualenv
f_gitconfig:
src: git/gitconfig
dst: "{{@@ INSTALL_HOME @@}}/.gitconfig"
chmod: "600"
f_gitconfig_gitlab:
src: git/gitconfig-gitlab
dst: "{{@@ INSTALL_HOME @@}}/.gitconfig-gitlab"
chmod: "600"
f_gitignore:
src: git/ignore
dst: "{{@@ INSTALL_HOME @@}}/.config/git/ignore"
chmod: "644"
f_vim_theme:
src: vim/catppuccin_latte.vim
dst: "{{@@ INSTALL_HOME @@}}/.vim/colors/catppuccin_latte.vim"
chmod: "644"
f_vimrc:
src: vim/vimrc
dst: "{{@@ INSTALL_HOME @@}}/.vimrc"
chmod: "644"
f_tmuxconf:
src: tmux/tmux.conf
dst: "{{@@ INSTALL_HOME @@}}/.tmux.conf"
chmod: "644"
actions:
- install_tpm
f_screenrc:
src: screen/screenrc
dst: "{{@@ INSTALL_HOME @@}}/.screenrc"
chmod: "644"
f_alacritty:
src: config/alacritty/alacritty.toml
dst: "{{@@ INSTALL_HOME @@}}/.config/alacritty/alacritty.toml"
chmod: "644"
actions:
- install_alacritty_theme
f_zshrc:
src: zsh/zshrc
dst: "{{@@ INSTALL_HOME @@}}/.zshrc"
chmod: "644"
actions:
- install_oh_my_zsh
- install_zsh_autosuggestions
- install_zsh_completions
- install_zsh_syntax_highlighting
- install_zsh_history_substring_search
f_zshtheme:
src: zsh/sdcswd.zsh-theme
dst: "{{@@ INSTALL_HOME @@}}/.oh-my-zsh/custom/themes/sdcswd.zsh-theme"
f_dotdrop_zsh_comp:
src: zsh/_dotdrop.sh-completion.zsh
dst: "{{@@ INSTALL_HOME @@}}/.oh-my-zsh/custom/completions/_dotdrop.sh-completion.zsh"
link: absolute
f_bashrc:
src: bash/bashrc
dst: "{{@@ INSTALL_HOME @@}}/.bashrc"
chmod: "644"
actions:
- install_bash_it
f_tcshrc:
src: tcsh/tcshrc
dst: "{{@@ INSTALL_HOME @@}}/.tcshrc"
chmod: "644"
actions:
- check_tcsh_local_sh
f_tcshrc_epics:
src: tcsh/tcshrc.epics
dst: "{{@@ INSTALL_HOME @@}}/.tcshrc.epics"
chmod: "644"
f_konsole_theme:
# https://github.com/catppuccin/konsole
src: konsole/Catppuccin-Latte.colorscheme
dst: "{{@@ INSTALL_HOME @@}}/.local/share/konsole/Catppuccin-Latte.colorscheme"
chmod: "644"
f_locale_conf:
src: etc/locale.conf
dst: "{{@@ INSTALL_HOME @@}}/.config/locale.conf"
chmod: "644"
f_gpg_conf:
src: gnupg/gpg.conf
dst: "{{@@ INSTALL_HOME @@}}/.gnupg/gpg.conf"
chmod: "600"
# fake_for_clean:
# src:
# dst:
# actions:
# - clean_all
profiles:
test:
dotfiles:
- ALL
variables:
INSTALL_HOME: "/tmp"
USE_PROXY: "YES"
PROXY: "172.19.64.17:8080"
USE_PYENV: "YES"
USE_GPG: "YES"
basic:
dotfiles:
- f_zshrc
- f_zshtheme
- f_dotdrop_zsh_comp
- f_bashrc
- f_vimrc
- f_vim_theme
- f_tmuxconf
- d_common
git:
dotfiles:
- f_gitconfig
- f_gitconfig_gitlab
- f_gitignore
normal:
include:
- basic
- git
vps:
include:
- basic
variables:
# git version may be old on some vps, so do not use shallow clone.
# re-define GIT_DEPTH
GIT_DEPTH: "0"
# we also need this to allow dotdrop to expand again
GIT_INSTALL_SH: "bash {{@@ REPO_SCRIPT_PATH @@}}/git_install.sh {{@@ GIT_DEPTH @@}}"
wsl:
include:
- basic
- git
dotfiles:
- f_gpg_conf
variables:
USE_GPG: "YES"
raspi:
include:
- basic
server-linac:
include:
- basic
- git
dotfiles:
- f_tcshrc
- f_tcshrc_epics
- f_screenrc
- f_pyenv
variables:
USE_PROXY: "YES"
PROXY: "172.19.64.17:8080"
USE_PYENV: "YES"
manjaro:
include:
- basic
- git
dotfiles:
- f_konsole_theme
- f_alacritty
- f_locale_conf
variables:
USE_NERD_FONT: "YES"
laptop-macos:
include:
- basic
- git
dotfiles:
- f_alacritty
- f_pyenv
- f_gpg_conf
# actions:
# - install_libmagic_macos
variables:
USE_PYENV: "YES"
USE_GPG: "YES"
USE_NERD_FONT: "YES"