Update .local/share/chezmoi/home/.chezmoidata.yaml, .local/share/chezmoi/home/.chezmoi.yaml.tmpl

This commit is contained in:
Brian Zalewski 2022-12-02 13:02:09 +00:00
parent 20a14a8519
commit 4d00efcfcc
2 changed files with 456 additions and 47 deletions

View file

@ -12,15 +12,23 @@
{{- $cloudflareSecretAccessKey := "" -}} {{- $cloudflareSecretAccessKey := "" -}}
{{- $cloudflareR2AccountId := "" -}} {{- $cloudflareR2AccountId := "" -}}
{{- $githubUsername := "ProfessorManhattan" -}} {{- $githubUsername := "ProfessorManhattan" -}}
{{- $githubReadToken := "" -}} {{- $githubReadToken := $.Env.GITHUB_READ_TOKEN -}}
{{- $gitlabReadToken := "" -}} {{- $gitlabReadToken := $.Env.GITLAB_READ_TOKEN -}}
{{- $locale := (output "echo" "$LANG") }} {{- $locale := (output "echo" "$LANG") }}
{{- $ngrokAuthToken := "" -}} {{- $ngrokAuthToken := $.Env.NGROK_AUTH_TOKEN -}}
{{- $slackApiToken := "" -}} {{- $slackApiToken := $.Env.SLACK_API_TOKEN -}}
{{- $tabbyConfigId := "" -}} {{- $tabbyConfigId := $.Env.TABBY_CONFIG_ID -}}
{{- $tabbySyncToken := "" -}} {{- $tabbySyncToken := $.Env.TABBY_SYNC_TOKEN -}}
{{- $timezone := "America/New_York" -}} {{- $timezone := "America/New_York" -}}
{{- $toolchains := list "docker" "iac" "java" "kubernetes" "node" "python" "rust" "extra" "gpg" -}} {{- $toolchains := list "docker" "go" "java" "kubernetes" "python" "rust" "extras" "web" "gpg" -}}
{{- $softwareGroup := "standard" -}}
{{- $desktopSession := true -}}
{{- if and (ne .chezmoi.os "darwin") (ne .chezmoi.os "windows") (not $.Env.DISPLAY) -}}
{{- $desktopSession = false -}}
{{- end -}}
{{- if $desktopSession -}}
{{- $softwareGroup = "standardDesktop" -}}
{{- end -}}
{{- $data := . }} {{- $data := . }}
{{- $_ := set $data "host" (default (dict) (get $data "host")) -}} {{- $_ := set $data "host" (default (dict) (get $data "host")) -}}
@ -85,11 +93,6 @@
{{- if stdinIsATTY -}} {{- if stdinIsATTY -}}
{{- $work = promptBoolOnce $data.host "work" "Work Environment" $work -}}
{{- $restricted = promptBoolOnce $data.host "restricted" "Restricted Environment (no sudo access)" $restricted -}}
{{- $name = promptStringOnce $data.user "name" "Your Name" $name -}}
{{- $email = promptStringOnce $data.user "email" "Your Email" $email -}}
{{- range $toolchain := $toolchains }} {{- range $toolchain := $toolchains }}
{{- $enabled := promptBoolOnce $data.toolchains $toolchain (list "Enable" $toolchain "toolchain" | join " ") (get $toolchainsEnabled $toolchain) -}} {{- $enabled := promptBoolOnce $data.toolchains $toolchain (list "Enable" $toolchain "toolchain" | join " ") (get $toolchainsEnabled $toolchain) -}}
{{- if and (eq $toolchain "kubernetes") $enabled (not $toolchainsEnabled.docker) -}} {{- if and (eq $toolchain "kubernetes") $enabled (not $toolchainsEnabled.docker) -}}
@ -99,8 +102,13 @@
{{- $_ := set $toolchainsEnabled $toolchain $enabled }} {{- $_ := set $toolchainsEnabled $toolchain $enabled }}
{{- end }} {{- end }}
{{- $work = promptBoolOnce $data.host "work" "Work environment" $work -}}
{{- $restricted = promptBoolOnce $data.host "restricted" "Restricted environment (i.e. no sudo)" $restricted -}}
{{- $softwareGroup = promptStringOnce $data.host "softwareGroup" "Software group" $softwareGroup -}}
{{- $name = promptStringOnce $data.user "name" "Full name:" $name -}}
{{- $email = promptStringOnce $data.user "email" "Primary e-mail address" $email -}}
{{- $gpgKeyId = promptStringOnce $data.user "gpgKeyId" "Public GPG key ID" $gpgKeyId -}} {{- $gpgKeyId = promptStringOnce $data.user "gpgKeyId" "Public GPG key ID" $gpgKeyId -}}
{{- $domain = promptStringOnce $data.user "domain" "Domain" $domain -}} {{- $domain = promptStringOnce $data.user "domain" "Domain name" $domain -}}
{{- $timezone = promptStringOnce $data.user "timezone" "Timezone" $timezone -}} {{- $timezone = promptStringOnce $data.user "timezone" "Timezone" $timezone -}}
{{- $cloudflareToken = promptStringOnce $data.user "cloudflareToken" "CloudFlare API Token" $cloudflareToken -}} {{- $cloudflareToken = promptStringOnce $data.user "cloudflareToken" "CloudFlare API Token" $cloudflareToken -}}
{{- $githubUsername = promptStringOnce $data.user "githubUsername" "GitHub username" $githubUsername -}} {{- $githubUsername = promptStringOnce $data.user "githubUsername" "GitHub username" $githubUsername -}}
@ -130,13 +138,14 @@ data:
cpu: cpu:
cores: "{{ $cpuCores }}" cores: "{{ $cpuCores }}"
threads: "{{ $cpuThreads }}" threads: "{{ $cpuThreads }}"
desktopSession: "{{ $desktopSession }}"
distro: distro:
family: "{{ .chezmoi.os }}" family: "{{ .chezmoi.os }}"
id: "{{ get .chezmoi.osRelease "id" | default .chezmoi.os }}" id: "{{ get .chezmoi.osRelease "id" | default .chezmoi.os }}"
home: "{{ .chezmoi.homeDir }}" home: "{{ .chezmoi.homeDir }}"
homeParentFolder: "{{ if eq .chezmoi.os "linux" }}/home{{ else if eq .chezmoi.os "darwin" }}/Users{{ else }}C:\Users{{ end }}" homeParentFolder: "{{ if eq .chezmoi.os "linux" }}/home{{ else if eq .chezmoi.os "darwin" }}/Users{{ else }}C:\Users{{ end }}"
qubes: {{ ne (stat (joinPath "usr" "bin" "qubes-session")) false }} qubes: {{ ne (stat (joinPath "usr" "bin" "qubes-session")) false }}
softwareGroup: "terminal" softwareGroup: "standard"
type: "{{ $chassisType }}" type: "{{ $chassisType }}"
work: {{ $work }} work: {{ $work }}
restricted: {{ $restricted }} restricted: {{ $restricted }}

View file

@ -24,72 +24,114 @@ config:
fonts: fonts:
main: Montserrat Bold main: Montserrat Bold
softwareGroups: softwareGroups:
terminal: basic:
- bash-completion
- bat
- bitwarden-cli
- chezmoi
- curl
- curlie
- delta
- direnv
- docker
- elasticagent
- empty-trash
- exa
- fd
- ffsend
- fkill
- fzf
- glances
- glow
- gping
- gtop
- gum
- neovim
- node
- oh-my-posh
- skate
- speed-test
- task
- vim
- wget
- whalebrew
- wifi-password
- zoxide
- zx
basicDesktop:
- brave
- firefox
- fonts
- tabby
- vscode
networkEnabled:
- cloudflared
- cockpit
- cups
- lexicon
# - maas
- ngxtop
standard:
- ansible
- ansibleconnect
- aria2 - aria2
- asdf - asdf
- automake - automake
- autorestic - autorestic
- bandwhich - bandwhich
- bat - bitly
- bitwarden-cli - bottom
- broot
- cheat - cheat
- chezmoi - commitizen
- cloudflared
- cmake
- croc - croc
- ctop - ctop
- curl
- curlie
- dasel - dasel
- delta - dat
- deno - deno
- difftastic - difftastic
- direnv - dog
- duf - duf
- dust - dust
- etcd
- exa
- fd
- ffsend
- fq - fq
- fselect - fselect
- fx - fx
- fzf - gdrive
- gist - gist
- git - git
- git-lfs - git-lfs
- git-secret - git-open
- gitui - glusterfs
- glances
- glow
- gnu - gnu
- go
- gomplate - gomplate
- googler - googler
- gping - gphotos-sync
- grex - grex
- gron - gron
- gum
- hexyl
- hey
- htop - htop
- hyperfine - hyperfine
- imagemagick - imagemagick
- jo - imgur-uploader
- is-up
- jq - jq
- jq - kvm
- litecli - lxdc
- m-cli - m-cli
- mas
- mcfly - mcfly
- mkcert - mkcert
- mycli - mycli
- nb - nb
- netcat
- nmap - nmap
- nnn - nnn
- node
- ots - ots
- pass - pass
- peco - peco
- pm2
- pnpm - pnpm
- prettier
- procs - procs
- pup - pup
- pywhat - pywhat
@ -101,27 +143,385 @@ softwareGroups:
- rsync - rsync
- sd - sd
- shellcheck - shellcheck
- skate - serve
- share
- sharp
- spotdl
- sqlite - sqlite
- ssh-vault - ssh-vault
- sysbench - sysbench
- task
- t-rec - t-rec
- teller - teller
- tig
- tinypng
- tldr
- tmux - tmux
- translate
- tree - tree
- typescript
- up - up
- vagrant
- vault - vault
- vim - vim
- volta - volta
- watchexec - watchexec
- wget
- whalebrew
- yj - yj
- ykman
- youtube-dl
- yq - yq
- zoxide - yubikey-manager
- zsh - zsh
- zx standardDesktop:
- autokey
- balenaetcher
- bitwarden-cli
- cerebro
- chrome
- clocker
- cumulus
- dat-desktop
- g-assist
- gimp
- inkscape
- jitsi-meet-electron
- keybase
- kodi
- ledgerlive
- libreoffice
- lollypop
- mailspring
- microsoft-office
- microsoft-todo
- motrix
- nuclear
# - onionshare
- parallels
- peek
- plex
- portmaster
- pretzel
- proton
- qtbittorrent
- qlplugins
- remote-desktop
- rofi
# - secretive
- sharex
- shotcut
- shotwell
- skype
- slack
- stats
- teams
- teamviewer
- temps
- timeshift
- virtualbox
- vlc
- webtorrent
- yubikey-authenticator
- yubikey-manager-qt
- zoom
development:
- act
- allure
- angular-cli
- ansible-lint
- aqua
- argocli
- auto-install
- automake
- awscli
- azurecli
- azurefunctions
- bane
- beets
- bin
- browser-sync
- bundler
- caniuse
- carbon-now
- carthage
- clair
- cmake
- cocoapods
- composer
- container-structure-test
- cookiecutter
- cordova
- delve
- deno
- desed
- dframe
- dive
- docker-slim
- dockle
- dotenv-linter
- dotnet
- dprint
- drone
- easyengine
- editly
- electron
- emma
- emoj
- eslint
- etcd
- exiftool
- fastify
- feathers
- filebrowser
- firebase
- flutter
- fpm
- fq
- fuego
- fx
- gcloud
- gdown
- gfi
- gh
- ghorg
- git-filter-repo
- git-lfs
- git-secret
- gitui
- gitextras
- gitfuzzy
- gitlabrunner
- gitleaks
- gitomatic
- gitsome
- gitstats
- gixy
- glab
- glen
- go-chromecast
- go-outline
- golangci-lint
- gomodifytags
- gopkgs
- gopls
- gotests
- grype
- gulp
- hadolint
- hclq
- heroku
- hexyl
- hey
- hostctl
- htmlq
- http-prompt
- httpie
- httpstat
- hub
- ideviceinstaller
- impl
- infracost
- ionic
- ios-deploy
- ipfs
- ipfs-deploy
- jiq
- jo
- litecli
- jqp
- juju
- libimobiledevice
- localtunnel
- mc # TODO
- mitmproxy
- mkcert
- mockoon
- molecule
- mycli
- nativefier
- ncc
- nectar
- nest
- newman
- node-prune
- nomad
- nomino
- np
- npm-check
- oq
- package-size
- packer
- pageres
- pandoc
- pastel
- pkg
- playwright
- psi
- psu
- ramda
- rancher
- ruby
- rust
- s5cmd
- schema
- scrcpy
- sdkman
- semantic-release
- sentry-cli
- serverless
- shc
- shdoc
- shfmt
- slackterm
- sloth
- snitch
- starred
- statcode
- staticcheck
- stegcloak
- surge
- svgo
- t
- t-rec
- terminalizer
- tokei
- trellis
- trivy
- trufflehog
- ts2c
- up
- upx
- virtualenv
- watchexec
- watchman
- waypoint
- websocat
- whaler
- winrm-cli
- wireshark
- wkhtmltopdf
- wordpressify
- wrangler
- xurls
- yamllint
- yank
- yarn
developmentDesktop:
- altair
- android-studio
- appium
- fig
- filezilla
- gitdock
- gitify
- gitkraken
- intellij-idea-ce
- ipfs-desktop
- iterm2
- lepton
- microsoft-edge
- mjml
- mqttx
- postman
- pre-commit
- quasar
- raspberry-pi-imager
- redis-desktop-manager
- responsively
- runjs
- sqlectron
- visual-studio
experimental:
- asciicinema
- assh
- astronvim
- awxcli
- budibase-cli
- cfssl
- chef
- chrome-cli
- cointop
- confd
- consul
- curator
- deta
- difftastic
- doctl
- envconsul
- fission
- fly
- fm
- fselect
- gdown
- gojq
- himalaya
- lazygit
- linuxkit
- logcli
- mergestat
- minikube
- mole
- muffet
- nebula
- osquery
- page-fetch
- papertrail
- poetry
- pony
- q
- sftpgo
- skm
- social-analyzer
- solidity
- teleport
- teller
- termius
- tfenv
- tflint
- tilt
- vector
experimentalDesktop:
- betwixt
- lens
- manta
- mark-text
- masscode
- mullvad-vpn
- powershell
kubernetes:
- kdash
- kn
- kubectx
- kubenav
- kubernetes-cli
- kubernetes-helm
- kubernetes-kompose
- kubeval
- linkerd2
- velero
deprecated:
- bivac
- boilr
- captain
- consul-cli
- consultemplate
- diffsofancy
- emplace
- htop
- hyper
- jenv
- kitty
- license
- lpass
- lsd
- mackup
- nvm
- pyenv
- raindrop
- rear
- sad
- supdock
- transfer
- ulauncher
- upt
softwarePlugins: softwarePlugins:
vim: vim:
plugins: plugins: