diff --git a/flake.nix b/flake.nix index bea873c..b514a07 100644 --- a/flake.nix +++ b/flake.nix @@ -15,7 +15,7 @@ mkSymlinkActivationScript = {target, source}: '' if [ -e ${source} ]; then - if [ -e ${target} ]; then + if [ -L ${target} ] || [ -e ${target} ]; then rm -rf ${target} fi ln -s ${source} ${target}