Config dump.

This commit is contained in:
2026-07-06 16:53:38 -04:00
parent 8e9204bc21
commit bf462da948
17 changed files with 914 additions and 335 deletions

View File

@@ -1,37 +1,40 @@
# Define list of directories you want to stow
CONFIG_DIRS := btop doom hypr kitty local nvim rclone starship tmux wallpapers waybar wireplumber wofi yazi zsh
CONFIG_DIRS := btop doom hypr kitty exokortex nvim rclone starship tmux wallpapers waybar wireplumber wofi yazi zsh
all: stow_all
# Default target for a fully-equipped workstation
all: stow_all stow_rclone stow_exokortex
wal -i ~/.config/wallpapers/green_yellow_forest.jpg -o ~/.config/waybar/launch.sh
neofetch
fastfetch
# Main target to handle stowing for all directories except rclone
stow_all: $(filter-out rclone, $(CONFIG_DIRS))
@echo "Cleaning broken symlinks in ~/.config..."
find ~/.config -xtype l -delete -print
@echo "Removing symlink ~/.zshrc if it exists..."
# Base configurations common to ALL hosts (excludes host-specific network/system automation)
stow_all: $(filter-out rclone exokortex, $(CONFIG_DIRS))
@echo "Removing legacy shell symlinks if they exist..."
@if [ -L $$HOME/.zshrc ]; then rm $$HOME/.zshrc; fi
@echo "Removing symlink ~/.tmux.conf if it exists..."
@if [ -L $$HOME/.tmux.conf ]; then rm $$HOME/.tmux.conf; fi
@echo "Stowing all configurations except rclone..."
@$(foreach dir,$(filter-out rclone, $(CONFIG_DIRS)), $(MAKE) stow_$(dir);)
@echo "Stowing baseline configurations..."
@$(foreach dir,$(filter-out rclone exokortex, $(CONFIG_DIRS)), $(MAKE) stow_$(dir);)
# Generic stow command for user-scoped directories
# Generic atomic stow command using Restow (-R) for clean tracking
stow_%:
@echo "Stowing $*"
stow -v -t $(HOME) $*
@echo "Stowing package: $*"
stow -R -v -t $(HOME) $*
# Post-installation script for rclone (executed after stowing)
post_install_rclone:
# Dedicated target for rclone (Omit this target on hosts that don't need it)
stow_rclone:
@echo "Stowing rclone securely..."
stow -R -v -t $(HOME) rclone
@echo "Running post-installation script for rclone"
@bash $(CURDIR)/scripts/rclone_post_install.sh
# Special target for rclone to run post-install after stowing
stow_rclone:
@echo "Cleaning broken symlinks in ~/.config/rclone/..."
find ~/.config/rclone/ -xtype l -delete -print
@echo "Removing symlink ~/.local/bin/rclone_mount_check.sh if it exists..."
@if [ -L $$HOME/.local/bin/rclone_mount_check.sh ]; then rm $$HOME/.local/bin/rclone_mount_check.sh; fi
@echo "Stowing rclone"
stow -v -t $(HOME) rclone
@$(MAKE) post_install_rclone
# Dedicated target for exokortex (Omit this target on sterile servers if needed)
stow_exokortex:
@echo "Stowing exokortex automation layers..."
stow -R -v -t $(HOME) exokortex
@echo "Running post-installation script for exokortex"
@bash $(CURDIR)/scripts/exokortex_post_install.sh
# Optional: Global cleanup target you only run manually when you want a deep system purge
prune_dead_links:
@echo "Purging all broken symlinks across core configuration profiles..."
find ~/.config -xtype l -delete -print
find ~/.local/bin -xtype l -delete -print