-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.chezmoi.toml.tmpl
119 lines (102 loc) · 5.94 KB
/
.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
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
# vim: syntax=toml
# PERSONAL OR COMPANY COMPUTER
{{ $computer := promptString "computer type (work/self)" -}}
[diff]
pager = "delta"
# FETCH SECRETS FROM BITWARDEN
[data]
[data.git]
{{- if eq $computer "work" }}
public_key = "{{ (bitwardenFields "item" "f6b245e7-4566-444c-a9dc-ad40013823b4").PublicKey.value }}"
{{- end }}
{{- if eq $computer "self" }}
public_key = "{{ (bitwardenFields "item" "1d05ce7c-d3cc-4a02-8843-ad40013983dc").PublicKey.value }}"
{{- end }}
[data.user]
name = "Fernando Becerra Méndez"
{{- if eq $computer "work" }}
email = "{{ (bitwarden "item" "5264707e-195c-45fb-ac48-ad41011f8607").login.username }}"
gpg_id = "{{ (bitwardenFields "item" "f6aeac99-7e35-4ff3-b636-ad400135d016").PublicKey.value }}"
{{- end }}
{{- if eq $computer "self" }}
email = "{{ (bitwardenFields "item" "109264ec-2414-42c4-81ff-a981002f92a4").Email.value }}"
gpg_id = "{{ (bitwardenFields "item" "078a43c0-9c30-4dd5-99f8-ad400179dea7").PublicKey.value }}"
{{- end }}
[data.github]
{{- if eq $computer "work" }}
user = "{{ (bitwarden "item" "d5a6af7d-5671-4ef1-9769-adcd01258c97").login.username }}"
token = "{{ (bitwardenFields "item" "d5a6af7d-5671-4ef1-9769-adcd01258c97").Token.value }}"
{{- end }}
{{- if eq $computer "self" }}
user = "{{ (bitwarden "item" "109264ec-2414-42c4-81ff-a981002f92a4").login.username }}"
token = "{{ (bitwardenFields "item" "109264ec-2414-42c4-81ff-a981002f92a4").Token.value }}"
{{- end }}
[data.spotify]
client_id = "{{ (bitwardenFields "item" "1b4d1581-161e-420e-8e92-acfb011b2344").ClientId.value }}"
client_secret = "{{ (bitwardenFields "item" "1b4d1581-161e-420e-8e92-acfb011b2344").ClientSecret.value }}"
[data.himalaya]
email = "{{ (bitwardenFields "item" "ec5a2a8c-7501-4093-9679-acde006f6539").Email.value }}"
[data.newsboat]
username = "{{ (bitwarden "item" "a0d9f1a9-d191-4552-ac5d-ad530003310d").login.username }}"
password = "{{ (bitwarden "item" "a0d9f1a9-d191-4552-ac5d-ad530003310d").login.password }}"
[data.computer]
type = "{{ $computer }}"
[data.infracost]
{{- if eq $computer "work" }}
token = "{{ (bitwardenFields "item" "7999bc9b-d3d8-4247-ab57-ae9201665ee0").TokenWork.value }}"
{{- end }}
{{- if eq $computer "self" }}
token = "{{ (bitwardenFields "item" "7999bc9b-d3d8-4247-ab57-ae9201665ee0").TokenSelf.value }}"
{{- end }}
{{- if eq $computer "self" }}
[data.rclone.icedrive]
url = "{{ (index (bitwarden "item" "ac1a115b-a9e3-430c-9fa0-acb6010a9f1f").login.uris 1).uri }}"
user = "{{ (bitwarden "item" "ac1a115b-a9e3-430c-9fa0-acb6010a9f1f").login.username }}"
pass = "{{ (bitwardenFields "item" "ac1a115b-a9e3-430c-9fa0-acb6010a9f1f").Token.value }}"
{{- end }}
{{- if eq $computer "work" }}
[data.rclone.box]
expiry = "{{ (bitwardenFields "item" "4d9bc60e-a1df-4d9f-a2a7-ae930120beb4").Expiry.value }}"
access = "{{ (bitwardenFields "item" "4d9bc60e-a1df-4d9f-a2a7-ae930120beb4").AccessToken.value }}"
refresh = "{{ (bitwardenFields "item" "4d9bc60e-a1df-4d9f-a2a7-ae930120beb4").RefreshToken.value }}"
{{- end }}
{{- if eq $computer "work" }}
[data.aws]
url = "{{ (index (bitwarden "item" "d2f8da65-76ad-45d2-93cb-ad4101536de8").login.uris 0).uri }}"
[data.aws.ecs.ops]
id = "{{ (bitwardenFields "item" "d2f8da65-76ad-45d2-93cb-ad4101536de8").OpsId.value }}"
role = "{{ (bitwardenFields "item" "d2f8da65-76ad-45d2-93cb-ad4101536de8").OpsRole.value }}"
[data.aws.als.dev]
id = "{{ (bitwardenFields "item" "d2f8da65-76ad-45d2-93cb-ad4101536de8").DevId.value }}"
role = "{{ (bitwardenFields "item" "d2f8da65-76ad-45d2-93cb-ad4101536de8").DevRole.value }}"
[data.aws.als.prod]
id = "{{ (bitwardenFields "item" "d2f8da65-76ad-45d2-93cb-ad4101536de8").ProdId.value }}"
role = "{{ (bitwardenFields "item" "d2f8da65-76ad-45d2-93cb-ad4101536de8").ProdRole.value }}"
[data.aws.csdc.dev]
id = "{{ (bitwardenFields "item" "3b688f8f-19b4-4871-ba0d-ad58017115e8").DevId.value }}"
role = "{{ (bitwardenFields "item" "3b688f8f-19b4-4871-ba0d-ad58017115e8").DevRole.value }}"
[data.aws.csdc.test]
id = "{{ (bitwardenFields "item" "3b688f8f-19b4-4871-ba0d-ad58017115e8").TestId.value }}"
role = "{{ (bitwardenFields "item" "3b688f8f-19b4-4871-ba0d-ad58017115e8").TestRole.value }}"
[data.aws.csdc.prod]
id = "{{ (bitwardenFields "item" "3b688f8f-19b4-4871-ba0d-ad58017115e8").ProdId.value }}"
role = "{{ (bitwardenFields "item" "3b688f8f-19b4-4871-ba0d-ad58017115e8").ProdRole.value }}"
[data.jira]
url = "{{ (index (bitwarden "item" "c526b42f-70b1-4acf-98b6-ad5901762e74").login.uris 1).uri }}"
user = "{{ (bitwarden "item" "f05c3ca4-7264-4084-9b0e-aaea0162fb74").login.username }}"
token = "{{ (bitwarden "item" "f05c3ca4-7264-4084-9b0e-aaea0162fb74").login.password }}"
[data.jenkins.prod]
url = "{{ (index (bitwarden "item" "3cf7afb5-c923-48d3-93db-aad200fe5e9a").login.uris 0).uri }}"
user = "{{ (bitwarden "item" "3cf7afb5-c923-48d3-93db-aad200fe5e9a").login.username }}"
token = "{{ (bitwardenFields "item" "3cf7afb5-c923-48d3-93db-aad200fe5e9a").ProdServerToken.value }}"
[data.jenkins.preprod]
url = "{{ (index (bitwarden "item" "3cf7afb5-c923-48d3-93db-aad200fe5e9a").login.uris 2).uri }}"
user = "{{ (bitwarden "item" "3cf7afb5-c923-48d3-93db-aad200fe5e9a").login.username }}"
token = "{{ (bitwardenFields "item" "3cf7afb5-c923-48d3-93db-aad200fe5e9a").PreprodServerToken.value }}"
[data.bitbucket.prod]
url = "{{ (index (bitwarden "item" "5264707e-195c-45fb-ac48-ad41011f8607").login.uris 1).uri }}"
token = "{{ (bitwardenFields "item" "5264707e-195c-45fb-ac48-ad41011f8607").ProdServerToken.value }}"
[data.bitbucket.preprod]
url = "{{ (index (bitwarden "item" "5264707e-195c-45fb-ac48-ad41011f8607").login.uris 2).uri }}"
token = "{{ (bitwardenFields "item" "5264707e-195c-45fb-ac48-ad41011f8607").PreprodServerToken.value }}"
{{- end }}