mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-30 09:37:59 +03:00
nixos/guix: fix conditional linking of profiles
This commit is contained in:
parent
a73ae4bf9f
commit
b7ece537bb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user