diff options
| author | Gabriel Arazas <foodogsquared@foodogsquared.one> | 2023-12-20 22:04:01 +0800 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2024-01-03 00:28:41 +0000 |
| commit | 8f011343f3a32511666b54fa45375a944e8130e4 (patch) | |
| tree | 8bcc602a309ccb940d221244da9725f2c213a06d | |
| parent | nixos/guix: add Guix home support (diff) | |
| download | nixpkgs-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.nix | 2 |
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); |
