Add conflict handling for home-manager symlinks

- Handle conflicting symlinks for icons, konsole, and fish directories
- Backup existing directories before home-manager creates new ones
- Run conflict handling before linkGeneration phase
This commit is contained in:
Celes Renata
2025-08-10 11:47:18 -07:00
parent 5f15f5ed78
commit efae617d52
9 changed files with 419 additions and 41 deletions
+2 -3
View File
@@ -44,9 +44,8 @@ in
# MISC configs (everything except fish and hypr)
(mkIf cfg.copyMiscConfig (
let
# Get all directories in .config except fish and hypr
# Get all directories in .config except fish, hypr, and quickshell (quickshell handled specially)
configDirs = [
"quickshell"
"kitty"
"foot"
"fuzzel"
@@ -58,7 +57,7 @@ in
configFiles = listToAttrs (map (dir: {
name = dir;
value = {
source = "${cfg.source}/.config/${dir}";
source = "${cfg.source}/${dir}";
recursive = true;
};
}) configDirs);