[doom] Fix doom sync behavior
This commit is contained in:
@@ -46,9 +46,13 @@ in
|
||||
};
|
||||
|
||||
home.activation.doomConfig = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||
if [ ! -L "${config.xdg.configHome}/doom" ]; then
|
||||
rm -rf "${config.xdg.configHome}/doom"
|
||||
ln -sf "${./doom}" "${config.xdg.configHome}/doom"
|
||||
# Always remove and recreate the symlink to ensure it points to the source directory
|
||||
rm -rf "${config.xdg.configHome}/doom"
|
||||
ln -sf "${config.home.homeDirectory}/nixos-configs/home/modules/emacs/doom" "${config.xdg.configHome}/doom"
|
||||
|
||||
# Run doom sync to apply any configuration changes
|
||||
if command -v doom >/dev/null 2>&1; then
|
||||
doom sync
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user