Commit b605ebd832cf

Vincent Demeester <vincent@sbr.pm>
2026-07-30 09:22:21
chore: add power tools to fedora bootstrap scripts
Added acpi, brightnessctl, and powertop to dnf install. Removed system-manager references from aomi bootstrap.
1 parent 9360b0c
Changed files (2)
imperative
imperative/aomi/bootstrap.sh
@@ -1,7 +1,7 @@
 #!/usr/bin/env bash
 
 # Aomi (Fedora CSB) Bootstrap Script
-# Description: Installs Nix (Determinate) and deploys system-manager config
+# Description: Installs Nix (Determinate) and deploys home-manager config
 #
 # Prerequisites: Fedora CSB installed, user has sudo access
 # Usage: ./bootstrap.sh
@@ -143,27 +143,6 @@ POLICY
 
 # --- Phase 4: System-manager ---
 
-build_and_activate() {
-	log_info "Building system-manager config: $SYSTEM_CONFIG"
-
-	# Ensure nix is in PATH
-	if ! command -v nix &>/dev/null; then
-		# shellcheck disable=SC1091
-		. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
-	fi
-
-	cd "$REPO_PATH"
-
-	local system_path
-	system_path=$(nix build ".#systemConfigs.${SYSTEM_CONFIG}" --no-link --print-out-paths)
-
-	log_info "Built: $system_path"
-	log_info "Activating system-manager..."
-	sudo "${system_path}/bin/activate"
-
-	log_info "System-manager activated!"
-}
-
 # --- Phase 4: Native apps (dnf/flatpak) ---
 
 install_native_apps() {
@@ -172,6 +151,9 @@ install_native_apps() {
 	# Niri compositor + Wayland essentials + terminal
 	log_info "Installing niri, Wayland support, and kitty..."
 	sudo dnf install -y \
+		acpi \
+		brightnessctl \
+		powertop \
 		podman podman-docker \
 		niri \
 		kitty \
@@ -364,7 +346,7 @@ setup_home_manager() {
 
 setup_wireguard() {
 	# Use Fedora-native wg-quick service (proper SELinux context)
-	# Config file is managed by system-manager in /etc/wireguard/wg0.conf
+	# Config file is managed by fedoraConfigs in /etc/wireguard/wg0.conf
 	log_info "Setting up WireGuard (native service)..."
 	sudo dnf install -y wireguard-tools
 	sudo systemctl enable wg-quick@wg0
@@ -487,16 +469,12 @@ print_summary() {
 	log_info "║     Aomi (Fedora CSB) Bootstrap Done     ║"
 	log_info "╠══════════════════════════════════════════╣"
 	log_info "║  Nix:            ✓ installed             ║"
-	log_info "║  System-manager: ✓ activated             ║"
 	log_info "║  Home-manager:   ✓ activated             ║"
 	log_info "║  Native apps:    ✓ installed             ║"
 	log_info "║  CRC:            ✓ installed (needs pull) ║"
 	log_info "╠══════════════════════════════════════════╣"
-	log_info "║  Rebuild system:                         ║"
-	log_info "║    nix build .#systemConfigs.aomi        ║"
-	log_info "║    sudo ./result/bin/activate             ║"
 	log_info "║  Rebuild home:                           ║"
-	log_info "║    home-manager switch --flake .#vdemeest@aomi ║"
+	log_info "║    make host/aomi/switch                 ║"
 	log_info "╚══════════════════════════════════════════╝"
 }
 
@@ -538,7 +516,6 @@ main() {
 	setup_luks_fido2
 	setup_lid
 	setup_unscd
-	build_and_activate
 	setup_wireguard
 	setup_yubikey_sudo
 	setup_shell
imperative/kyushu/bootstrap.sh
@@ -171,6 +171,9 @@ install_native_apps() {
 	# Niri compositor + Wayland essentials + terminal
 	log_info "Installing niri, Wayland support, and kitty..."
 	sudo dnf install -y \
+		acpi \
+		brightnessctl \
+		powertop \
 		podman podman-docker \
 		niri \
 		kitty \