From b7ece537bb396412f9980b4fba62d6d13014cc6d Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 20 Dec 2023 22:04:01 +0800 Subject: [PATCH] nixos/guix: fix conditional linking of profiles --- nixos/modules/services/misc/guix/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/guix/default.nix b/nixos/modules/services/misc/guix/default.nix index 0524f0316e77..6c3874c0750a 100644 --- a/nixos/modules/services/misc/guix/default.nix +++ b/nixos/modules/services/misc/guix/default.nix @@ -274,7 +274,7 @@ in linkProfile = profile: location: let userProfile = guixProfile profile; in '' - [ -d "${userProfile}" ] && [ -L "${location}" ] || ln -sf "${userProfile}" "${location}" + [ -d "${userProfile}" ] && ln -sfn "${userProfile}" "${location}" ''; linkProfileToPath = acc: profile: location: let in acc + (linkProfile profile location);