diff --git a/flake.nix b/flake.nix index 6d2c27e..ae7ba3a 100644 --- a/flake.nix +++ b/flake.nix @@ -12,7 +12,7 @@ ]; mkSymlinkActivationScript = {target, source, isDir ? false}: '' - if [ ${if isDir then "-d" else "-f"} ${target} ]; then + if [ -e ${target} ]; then rm${if isDir then " -rf" else ""} ${target} fi ln -s ${source} ${target}