From c18dd9636dda5cf996af49eb1d11e87aab44caa0 Mon Sep 17 00:00:00 2001 From: colin Date: Fri, 6 Jan 2023 05:32:31 +0000 Subject: [PATCH] fs: symlinking: fix recursive links (don't follow links when creating new ones) --- modules/fs/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/fs/default.nix b/modules/fs/default.nix index 20d1ce989..97596c4bd 100644 --- a/modules/fs/default.nix +++ b/modules/fs/default.nix @@ -295,7 +295,7 @@ let lnfrom="$1" lnto="$2" - ln -sf "$lnto" "$lnfrom" + ln -sf --no-dereference "$lnto" "$lnfrom" ''; scriptArgs = [ path link-cfg.target ]; };