summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Arazas <foodogsquared@foodogsquared.one>2023-12-20 22:04:01 +0800
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2024-01-03 00:28:41 +0000
commit8f011343f3a32511666b54fa45375a944e8130e4 (patch)
tree8bcc602a309ccb940d221244da9725f2c213a06d
parentnixos/guix: add Guix home support (diff)
downloadnixpkgs-origin/backport-274192-to-release-23.11.tar.gz
nixos/guix: fix conditional linking of profilesorigin/backport-274192-to-release-23.11
(cherry picked from commit b7ece537bb396412f9980b4fba62d6d13014cc6d)
-rw-r--r--nixos/modules/services/misc/guix/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/guix/default.nix b/nixos/modules/services/misc/guix/default.nix
index 42a0e854b709..7174ff36b709 100644
--- a/nixos/modules/services/misc/guix/default.nix
+++ b/nixos/modules/services/misc/guix/default.nix
@@ -268,7 +268,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);