From 2e70a1068f37627623c45bcbe9cba01378d84d4d Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Mon, 25 Dec 2023 03:52:11 +0000 Subject: [PATCH] Removed prompting --- docs/terminal/chezmoi-intro.md | 8 ++++---- home/.chezmoi.yaml.tmpl | 20 -------------------- 2 files changed, 4 insertions(+), 24 deletions(-) diff --git a/docs/terminal/chezmoi-intro.md b/docs/terminal/chezmoi-intro.md index acd2effc..1c6ab115 100644 --- a/docs/terminal/chezmoi-intro.md +++ b/docs/terminal/chezmoi-intro.md @@ -6,10 +6,10 @@ Using this script for the first time? Check out [our documentation](https://inst Adapting this project for your own purposes basically boils down to a few steps: -1. Fork our [GitHub project](https://github.com/megabyte-labs/install.doctor) -2. Generate an Age encryption key -3. Use the Age encryption key to populate the secrets in `home/.chezmoitemplates` -4. Customize the values in `home/.chezmoidata.yaml` and `home/.chezmoi.yaml.tmpl` +1. [Fork our GitHub project](https://github.com/megabyte-labs/install.doctor/fork). +2. Generate an Age encryption key. +3. Use the Age encryption key to populate the secrets in `home/.chezmoitemplates`. For help, check out the [Secrets documentation](https://install.doctor/docs/customization/secrets). +4. Customize the values in `home/.chezmoidata.yaml` and `home/.chezmoi.yaml.tmpl`. ## Headless Deploy diff --git a/home/.chezmoi.yaml.tmpl b/home/.chezmoi.yaml.tmpl index ca341462..307276e3 100644 --- a/home/.chezmoi.yaml.tmpl +++ b/home/.chezmoi.yaml.tmpl @@ -96,26 +96,6 @@ {{- else }} {{- $work = false -}} {{- end -}} -{{- else if not (env "WORK_ENVIRONMENT") -}} -{{- $work = promptBoolOnce $data.host "work" "Work environment" $work -}} -{{- end -}} -{{- if not (env "RESTRICTED_ENVIRONMENT") -}} -{{- $restricted = promptBoolOnce $data.host "restricted" "Restricted environment (i.e. no sudo)" $restricted -}} -{{- end -}} -{{- if not (env "SOFTWARE_GROUP") -}} -{{- $softwareGroup = promptStringOnce $data.host "softwareGroup" "Software group" $softwareGroup -}} -{{- end -}} -{{- if not (env "FULL_NAME") -}} -{{- $name = promptStringOnce $data.user "name" "Full name" $name -}} -{{- end -}} -{{- if not (env "PRIMARY_EMAIL") -}} -{{- $email = promptStringOnce $data.user "email" "Primary e-mail address" $email -}} -{{- end -}} -{{- if not (env "PUBLIC_SERVICES_DOMAIN") -}} -{{- $domain = promptStringOnce $data.user "domain" "Domain name" $domain -}} -{{- end -}} -{{- if not (env "HOST") -}} -{{- $hostname = promptStringOnce $data.host "hostname" "Hostname ID" $hostname -}} {{- end -}} {{- else -}}