blob: 9cea685c59a40ae38ef193476cd78861489c98e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
By default created symlink poins to a directory not accessible by user.
Make a symlink the same way NixOS does symlinking.
diff --git a/scripts/nix-profile.sh.in b/scripts/nix-profile.sh.in
index 672d1f0..e3b0978 100644
--- a/scripts/nix-profile.sh.in
+++ b/scripts/nix-profile.sh.in
@@ -6,3 +6,3 @@ if [ -n "$HOME" ]; then
echo "creating $NIX_LINK" >&2
- _NIX_DEF_LINK=@localstatedir@/nix/profiles/default
+ _NIX_DEF_LINK=@localstatedir@/nix/profiles/per-user/$USER/profile
@coreutils@/ln -s "$_NIX_DEF_LINK" "$NIX_LINK"
|