dot_profile: merge into chezmoi

This commit is contained in:
dogeystamp 2024-08-13 21:21:50 -04:00
parent b2b87a5edc
commit 0562de28c5
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
3 changed files with 6 additions and 24 deletions

5
src/.chezmoi.toml.tmpl Normal file
View File

@ -0,0 +1,5 @@
{{- $systemprofilechoices := list "DEFAULT" "SLIM" "MINIMAL" -}}
{{- $systemprofile := promptChoiceOnce . "systemprofile" "Select a system profile (use capital letter)" $systemprofilechoices "SLIM" -}}
[data]
systemprofile = {{- $systemprofile | quote -}}

View File

@ -1,19 +0,0 @@
#!/bin/sh
# Profile that enables/disables certain features based on the device
# Everything might need to be restarted for this to take effect.
## ----------
## IMPORTANT!
## ----------
## Copy this to '~/.config/dot_profile'.
# Profiles
# --------
# DEFAULT:
# Everything's enabled.
# SLIM:
# Try to reduce bloat; turn off expensive plugins and eye-candy.
# MINIMAL:
# Nothing is launched automatically, and no plugins are installed.
export SYSTEM_PROFILE="DEFAULT"

View File

@ -70,11 +70,7 @@ if [ -r "$XDG_CONFIG_HOME"/identity ]; then
fi
# Profile to enable/disable features on certain devices
if [ ! -f "$XDG_CONFIG_HOME"/dot_profile ]; then
export SYSTEM_PROFILE="SLIM"
else
. "$XDG_CONFIG_HOME"/dot_profile
fi
export SYSTEM_PROFILE={{ .systemprofile | quote }}
# Typst root
export TYPST_ROOT="$HOME/nt"