feat: migrate theme and font to declarative Nix options
Some checks failed
Check / eval-and-lint (push) Has been cancelled
Some checks failed
Check / eval-and-lint (push) Has been cancelled
This commit is contained in:
@@ -26,7 +26,12 @@ mkdir -p "$STATE_DIR"
|
||||
if fc-list | grep -iq "$font_name"; then
|
||||
TMP_JSON=$(mktemp)
|
||||
jq --arg font "$font_name" '.font = $font' "$STATE_FILE" > "$TMP_JSON" && mv "$TMP_JSON" "$STATE_FILE"
|
||||
echo "Font set to $font_name declaratively. Applying changes..."
|
||||
echo "Font set to $font_name."
|
||||
echo "NOTE: This change is TEMPORARY and will be lost on the next system rebuild."
|
||||
echo "To make this font permanent, add the following to your /etc/nixos/home.nix:"
|
||||
echo " nomarchy.fonts.monospace = \"$font_name\";"
|
||||
echo ""
|
||||
echo "Applying changes with nomarchy-env-update..."
|
||||
|
||||
if [[ "$no_update" == "true" ]]; then
|
||||
echo "Skipping nomarchy-env-update due to --no-update flag."
|
||||
|
||||
@@ -53,7 +53,12 @@ if [ -d "$BG_DIR" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Theme set to $THEME_NAME. Applying changes with nomarchy-env-update..."
|
||||
echo "Theme set to $THEME_NAME."
|
||||
echo "NOTE: This change is TEMPORARY and will be lost on the next system rebuild."
|
||||
echo "To make this theme permanent, add the following to your /etc/nixos/home.nix:"
|
||||
echo " nomarchy.theme = \"$THEME_NAME\";"
|
||||
echo ""
|
||||
echo "Applying changes with nomarchy-env-update..."
|
||||
|
||||
if [[ "$NO_UPDATE" == "true" ]]; then
|
||||
echo "Skipping nomarchy-env-update due to --no-update flag."
|
||||
|
||||
Reference in New Issue
Block a user