I would like to merge two icon themes (that do not share any icons). A single Icon theme can be symlinked by home-manager like this:
home.file.".local/share/icons/Adwaita".source = "${pkgs.gnome.adwaita-icon-theme}/share/themes/Adwaita";
(although I don’t know if this is the correct way to do that)
I would like something that works kind of like this:
home.file.".local/share/icons/Adwaita" = {
source = "${pkgs.gnome.adwaita-icon-theme}/share/themes/Adwaita";
recursive = true;
};
home.file.".local/share/icons/Adwaita" = {
source = ./adwaita-patch;
recursive = true;
};
But of course you can’t have the same attribute name twice. I saw symlinkJoin
exists, but only as the builder of a derivation. Do I have to create a new derivation that essentially just copies files, or can I do this somehow directly in the home-manager config?