From 584cf016df976b13572c48cbd0ee39f4808645e7 Mon Sep 17 00:00:00 2001
From: humocs-man <251756307+humocs-man@users.noreply.github.com>
Date: Sat, 14 Mar 2026 11:59:33 +0100
Subject: [PATCH] Enhance firstboot-setup.sh with Homebrew and update options
Added prompts for Homebrew installation and automatic updates in the firstboot setup script.
---
.../skel/.config/firstboot/firstboot-setup.sh | 35 +++++++++++++++++--
1 file changed, 33 insertions(+), 2 deletions(-)
diff --git a/files/etc/skel/.config/firstboot/firstboot-setup.sh b/files/etc/skel/.config/firstboot/firstboot-setup.sh
index 263d2d3..f4cc687 100644
--- a/files/etc/skel/.config/firstboot/firstboot-setup.sh
+++ b/files/etc/skel/.config/firstboot/firstboot-setup.sh
@@ -181,8 +181,6 @@ run_list KI \
"KI-Anwenungen\nProgramme für lokale KI-Anwendungen" \
alpaca "All-In-One-Anwendung für lokale Chat- und RAG-Nutzung" \
gpt4all "All-In-One-Anwendung von NomicAI"
-
-
run_list DEV \
"Entwicklung" \
@@ -194,6 +192,39 @@ run_list SYSTEM \
"System‑Werkzeuge\nHilfsprogramme für Konfiguration und Verwaltung." \
flatseal "Verwaltung von Flatpak‑Berechtigungen"
+
+if zenity --question \
+ --title="Homebrew installieren?" \
+ --width=500 \
+ --text="Homebrew installieren?\n
+Homebrew ist ein Paketmanager für Kommandozeilen‑Werkzeuge.\n
+Er eignet sich besonders für Entwickler und fortgeschrittene Nutzer.\n
+\n
+Möchtest du Homebrew installieren?"
+then
+ echo "Installiere Homebrew (non‑interactive)…"
+ NONINTERACTIVE=1 /bin/bash -c \
+ "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
+else
+ echo "Homebrew wird nicht installiert."
+fi
+
+if zenity --question \
+ --title="Automatische Updates aktivieren?" \
+ --width=500 \
+ --text="Automatische System‑Updates\n
+Das System kann regelmäßig image‑basierte Updates automatisch installieren.\n
+\n
+Empfohlen für die meisten Nutzer.\n
+\n
+Möchtest du automatische Updates aktivieren?"
+then
+ echo "Aktiviere automatische Updates…"
+ systemctl enable --now bootc-update.timer
+else
+ echo "Automatische Updates bleiben deaktiviert."
+fi
+
# ------------------------------------------------------------
# Installation
# ------------------------------------------------------------