Add matugen directory to backup handling

- Add matugen to writable-mode backup script directory list
- Add matugen conflict handling to Home Manager activation script
- Handle both symlinked and regular matugen directories
- Prevents activation failures due to existing matugen configs

This resolves the 'mkdir: cannot create directory' and 'ln: failed to create symbolic link'
errors that occur when ~/.config/matugen already exists during Home Manager activation.
This commit is contained in:
Celes Renata
2025-08-10 13:25:22 -07:00
parent 0321f75443
commit c90cc9427c
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ let
mkdir -p "$BACKUP_DIR"
# Backup specific directories that will be overwritten
for dir in quickshell hypr fish foot kitty fuzzel wlogout; do
for dir in quickshell hypr fish foot kitty fuzzel wlogout matugen; do
if [[ -d "$CONFIG_DIR/$dir" ]]; then
info " Backing up $dir"
cp -r "$CONFIG_DIR/$dir" "$BACKUP_DIR/" 2>/dev/null || true