mirror of
https://github.com/cupcakearmy/nix-macos.git
synced 2026-04-09 16:17:08 +00:00
remove destination if not symlink
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user