From 61bb9982d4dc6f0aa0832e62a6d107e6a2bef37b Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Thu, 26 Mar 2026 12:25:14 +0100 Subject: [PATCH] remove destination if not symlink --- home/home.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/home/home.nix b/home/home.nix index 8b7a413..09fcd04 100644 --- a/home/home.nix +++ b/home/home.nix @@ -22,7 +22,10 @@ let activation.zedConfig = lib.hm.dag.entryAfter [ "writeBoundary" ] '' mkdir -p ~/.config - ln -sf ~/.config/dotfiles/secrets/zed ~/.config/zed + if [ ! -L ~/.config/zed ]; then + rm -rf ~/.config/zed + ln -sf ~/.config/dotfiles/secrets/zed ~/.config/zed + fi ''; file = {