# Generated by chezmoi from home/dot_config/metapac/config.toml.tmpl # Machine list lives in home/.chezmoidata/hosts.toml -- edit that, not this. # # metapac reads this from the platform config dir: # Linux $XDG_CONFIG_HOME/metapac/config.toml # macOS ~/Library/Application Support/metapac/config.toml (symlinked to ~/.config/metapac) # Backends enabled on every host; merged with [hostname_enabled_backends]. enabled_backends = [] # Only the group files listed in [hostname_groups] are used, instead of every # .toml found under groups/. hostname_groups_enabled = true # Each host is emitted twice: under its bare name, and under ".local". # metapac keys off a raw gethostname(), which on macOS carries the mDNS ".local" # suffix, while the registry is keyed by chezmoi's .chezmoi.hostname, which stops # at the first dot. Without the alias every macOS host falls through to # "no entry in the `hostname_groups` config" and metapac refuses to run. The # spare key is inert on hosts that report a bare name. [hostname_enabled_backends] {{- range $name, $h := .hosts }} {{ $name | quote }} = {{ $h.backends | toJson }} {{ printf "%s.local" $name | quote }} = {{ $h.backends | toJson }} {{- end }} # Every host implicitly gets its own baseline group, groups/hosts/.toml, # holding the packages the OS install left behind. This is what keeps # `metapac clean` from offering to uninstall base, sudo and the kernel. # A host with no baseline file fails loudly on the next metapac run, naming the # path to create -- that is deliberate. [hostname_groups] {{- range $name, $h := .hosts }} {{- $g := prepend $h.groups (printf "hosts/%s" $name) }} {{ $name | quote }} = {{ $g | toJson }} {{ printf "%s.local" $name | quote }} = {{ $g | toJson }} {{- end }} [arch] # pacman, pamac, paru, pikaur and yay share a package database, so metapac needs # to be told which one to drive. package_manager = "paru" [cargo] locked = false binstall = false