feat: migrate theme and font to declarative Nix options
Some checks failed
Check / eval-and-lint (push) Has been cancelled

This commit is contained in:
Bernardo Magri
2026-05-31 19:33:33 +01:00
parent a2649728d3
commit 130ae80f3e
6 changed files with 33 additions and 42 deletions

View File

@@ -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."

View File

@@ -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."