From 32183bd331478ee1320da3429028db9480be431c Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Mon, 15 Jan 2024 14:59:01 +0000 Subject: [PATCH] devshell/commands: Overwrite home symlink if needed --- devshell/commands.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devshell/commands.nix b/devshell/commands.nix index a3fa286..97774e1 100644 --- a/devshell/commands.nix +++ b/devshell/commands.nix @@ -20,7 +20,7 @@ in [ -e "${homeFlake}" ] && echo "${homeFlake} already exists" && exit 1 mkdir -p "$(dirname "${homeFlake}")" - ln -s "$(pwd)/flake.nix" "${homeFlake}" + ln -sf "$(pwd)/flake.nix" "${homeFlake}" echo "Installed link to $(pwd)/flake.nix at ${homeFlake}" ''; }