homelab control center nur bei konfiguration: module-reihenfolge geändert, dotfiles räumen homelab-files bei fehlendem config weg

This commit is contained in:
2026-05-29 18:46:22 +02:00
parent de88e5b603
commit e2f8313034
3 changed files with 9 additions and 3 deletions

View File

@@ -21,9 +21,9 @@ DEFAULT_MODULES=(
"core/preflight" "core/preflight"
"core/packages" "core/packages"
"core/ags" "core/ags"
"homelab/setup"
"core/dotfiles" "core/dotfiles"
"core/services" "core/services"
"homelab/setup"
"optional/install" "optional/install"
"post/apply-theme" "post/apply-theme"
"core/sddm" "core/sddm"
@@ -32,9 +32,9 @@ DEFAULT_MODULES=(
FRESH_MODULES=( FRESH_MODULES=(
"core/packages" "core/packages"
"core/ags" "core/ags"
"homelab/setup"
"core/dotfiles" "core/dotfiles"
"core/services" "core/services"
"homelab/setup"
"optional/install" "optional/install"
"post/apply-theme" "post/apply-theme"
"core/sddm" "core/sddm"

View File

@@ -4,7 +4,7 @@ module_description() {
printf "AGS (Aylur's Gtk Shell) - Widget system for Hyprland\n" printf "AGS (Aylur's Gtk Shell) - Widget system for Hyprland\n"
} }
module_required() { return 1; } module_required() { return 0; }
module_should_skip() { module_should_skip() {
command -v ags >/dev/null 2>&1 command -v ags >/dev/null 2>&1
} }

View File

@@ -60,6 +60,12 @@ print(' '.join(items))
copy_path "$source" "$target" copy_path "$source" "$target"
done done
if [[ ! -f "$HOME/.config/homelab/config.yaml" ]]; then
rm -f "$HOME/.config/hypr/Scripts/homelab-control.sh"
rm -f "$HOME/.config/hypr/ags/homelab.tsx"
rm -f "$HOME/.config/hypr/ags/homelab.css"
fi
if [[ -f "$dotfiles_dir/starship.toml" ]]; then if [[ -f "$dotfiles_dir/starship.toml" ]]; then
copy_path "$dotfiles_dir/starship.toml" "$HOME/.config/starship.toml" copy_path "$dotfiles_dir/starship.toml" "$HOME/.config/starship.toml"
fi fi