diff --git a/nix-system-configs/modules/scripts/pull.zsh b/nix-system-configs/modules/scripts/pull.zsh index 234e66e..77544ae 100755 --- a/nix-system-configs/modules/scripts/pull.zsh +++ b/nix-system-configs/modules/scripts/pull.zsh @@ -137,11 +137,27 @@ else print_warn "Secrets directory not found: ${SECRETS_DIR}" fi -# Step 2.2: Sync system_scripts directory +# Step 2.2: Sync styling directory (copy custom themes, templates, css etc.) +STYLING_DIR="${SCRIPT_DIR}/../../styling" +STYLING_TARGET="/etc/styling" + +if [[ -d "$STYLING_DIR" ]]; then + print_info "Syncing styling to ${BOLD}${STYLING_TARGET}${RESET}..." + if sudo rsync -av --delete "${STYLING_DIR}/" "${STYLING_TARGET}/"; then + print_success "Styling synced" + else + print_error "Failed to sync styling" + exit 1 + fi +else + print_warn "Styling directory not found: ${STYLING_DIR}" +fi + +# Step 2.3: Sync system_scripts directory SYSTEM_SCRIPT_DIR="${SCRIPT_DIR}/../system_scripts" SYSTEM_SCRIPT_TARGET="/etc/nixos/system_scripts" -if [[ -d "$SECRETS_DIR" ]]; then +if [[ -d "$SYSTEM_SCRIPT_DIR" ]]; then print_info "Syncing system scripts to ${BOLD}${SYSTEM_SCRIPT_TARGET}${RESET}..." if sudo rsync -av --delete "${SYSTEM_SCRIPT_DIR}/" "${SYSTEM_SCRIPT_TARGET}/"; then print_success "System scripts synced"