remove destination if not symlink

This commit is contained in:
2026-03-26 12:25:14 +01:00
parent b19972ecdb
commit 61bb9982d4

View File

@@ -22,7 +22,10 @@ let
activation.zedConfig = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
mkdir -p ~/.config
if [ ! -L ~/.config/zed ]; then
rm -rf ~/.config/zed
ln -sf ~/.config/dotfiles/secrets/zed ~/.config/zed
fi
'';
file = {