Quick Reference

  • install syncthing and chezmoi to sync over the chezmoi configs from another node
sudo pacman -S syncthing chezmoi && syncthing
  • chezmoi directory:
$HOME/.local/share/chezmoi/

Variables

# username
{{.chezmoi.username}}
 
# Hostname
{{.chezmoi.fqdnHostname}}
 
# Create a filepath variable and put quotes around it
{{ joinPath .chezmoi.sourceDir "/.storage/mimeapps.list" | quote }}
 
# access a chezmoi-config variable:
{{.environment}}
{{.environment | quote}}
 
 

IF

{{- if eq .environment "work" }}
 
{{ if eq .chezmoi.hostname "EXPS15"}}
 
{{ else if eq .chezmoi.os "linux" }}
 
{{ end }}

If/OR

{{- if or (eq .chezmoi.hostname "AA0438IT") (eq .chezmoi.hostname "pve-dmz-0") }}
 
 
 
 
{{ else if eq .chezmoi.os "linux" }}
 
{{ end }}

Templates

Auto git push

Config File Template

Ignores

.chezmoiignore

# Ignore Fsearch Folder, fserach.conf gets updated with x/y size of windows
**/fsearch