-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.chezmoi.toml.tmpl
22 lines (20 loc) · 993 Bytes
/
.chezmoi.toml.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# vim: ft=toml
{{- $codespaces:= env "CODESPACES" | not | not -}}
{{- $private_nvim_github_token:= env "PRIVATE_NVIM_GITHUB_TOKEN" -}}
{{- $private_zsh_github_token:= env "PRIVATE_NVIM_GITHUB_TOKEN" -}}
{{- $codespaces_repo:= env "GITHUB_REPOSITORY" -}}
{{- $wsl:= and (eq .chezmoi.os "linux") (.chezmoi.kernel.osrelease | lower | contains "microsoft") }}
{{- $ubuntu:= and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.id "ubuntu") (not $codespaces) }}
{{- $arch:= and (eq .chezmoi.os "linux") (or (eq .chezmoi.osRelease.id "arch") (eq .chezmoi.osRelease.id "endeavouros")) }}
{{- $apt:= or $wsl $ubuntu }}
{{- $darwin:= eq .chezmoi.os "darwin" }}
[data]
codespaces = {{ $codespaces }}
codespaces_repo = {{ $codespaces_repo | quote }}
private_nvim_github_token = {{ $private_nvim_github_token | quote }}
private_zsh_github_token = {{ $private_zsh_github_token | quote }}
wsl = {{ $wsl }}
ubuntu = {{ $ubuntu }}
apt = {{ $apt }}
arch = {{ $arch }}
darwin = {{ $darwin }}