-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.chezmoi.toml.tmpl
More file actions
66 lines (59 loc) · 2.55 KB
/
.chezmoi.toml.tmpl
File metadata and controls
66 lines (59 loc) · 2.55 KB
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
[data]
{{- $environment := promptStringOnce . "environment" "Whose machine is this? [work/personal]" "personal" }}
environment = "{{ $environment }}"
{{- $gpu := promptStringOnce . "gpu" "What GPU are you using? [amd/nvidia/other]" "other" }}
gpu = "{{ $gpu }}"
{{- $headless := promptBoolOnce . "headless" "Is this a headless machine? [y/n]" false }}
headless = {{ $headless }}
relative_xdg_data_home = ".local/share"
relative_xdg_config_home = ".config"
relative_xdg_state_home = ".local/state"
relative_xdg_cache_home = ".cache"
[data.monitors]
{{- $location := promptStringOnce . "monitors.selected" "Where are you located? [home/work]" "home" }}
selected = "{{ $location }}"
{{- $defaultProfile := "desk" }}
{{- if and (hasKey . "monitors") (hasKey .monitors $location) (hasKey (index .monitors $location) "default_profile") }}
{{- $defaultProfile = index (index .monitors $location) "default_profile" }}
{{- end }}
{{- $configuredDefaultProfile := promptStringOnce . "monitors.default_profile" "What should the default monitor profile be?" $defaultProfile }}
default_profile = "{{ $configuredDefaultProfile }}"
[data.backup]
{{- $backupEnabled := promptBoolOnce . "backup.enabled" "Configure Borg backups for this machine? [y/n]" false }}
enabled = {{ $backupEnabled }}
{{- if $backupEnabled }}
{{- $backupHost := promptStringOnce . "backup.host" "Backup host or IP" "" }}
host = "{{ $backupHost }}"
{{- $backupPort := promptStringOnce . "backup.port" "Backup SSH port" "8022" }}
port = "{{ $backupPort }}"
{{- $backupHostAlias := promptStringOnce . "backup.host_alias" "Local SSH alias for the backup host" "borg-backup" }}
host_alias = "{{ $backupHostAlias }}"
{{- $backupRepoName := promptStringOnce . "backup.repo_name" "Repository name for this machine" "repo" }}
repo_name = "{{ $backupRepoName }}"
{{- $backupTimer := promptStringOnce . "backup.on_calendar" "systemd OnCalendar schedule for backups" "daily" }}
on_calendar = "{{ $backupTimer }}"
{{- $backupStaleHours := promptStringOnce . "backup.stale_hours" "Mark backups stale after how many hours?" "24" }}
stale_hours = "{{ $backupStaleHours }}"
{{- else }}
host = ""
port = "8022"
host_alias = ""
repo_name = ""
on_calendar = "daily"
stale_hours = "24"
{{- end }}
[data.evremap]
{{- $evremapEnabled := promptBoolOnce . "evremap.enabled" "Enable evremap for this machine? [y/n]" false }}
enabled = {{ $evremapEnabled }}
[edit]
command = "code"
args = ["--wait"]
[git]
autoCommit = true
autoPush = true
[diff]
command = "difft"
args = ["--color", "always", "--skip-unchanged"]
pager = "less -RF"
exclude = ["scripts"]
reverse = false