Skip to content

Commit 11aa256

Browse files
committed
nix-profile{,-daemon}.fish: set NIX_PROFILES to use $NIX_LINK
1 parent 324bfd8 commit 11aa256

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/nix-profile-daemon.fish.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ end
5353

5454
# Set up environment.
5555
# This part should be kept in sync with nixpkgs:nixos/modules/programs/environment.nix
56-
set --export NIX_PROFILES "@localstatedir@/nix/profiles/default $HOME/.nix-profile"
56+
set --export NIX_PROFILES "@localstatedir@/nix/profiles/default $NIX_LINK"
5757

5858
# Populate bash completions, .desktop files, etc
5959
if test -z "$XDG_DATA_DIRS"

scripts/nix-profile.fish.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ end
5858

5959
# Set up environment.
6060
# This part should be kept in sync with nixpkgs:nixos/modules/programs/environment.nix
61-
set --export NIX_PROFILES "@localstatedir@/nix/profiles/default $HOME/.nix-profile"
61+
set --export NIX_PROFILES "@localstatedir@/nix/profiles/default $NIX_LINK"
6262

6363
# Populate bash completions, .desktop files, etc
6464
if test -z "$XDG_DATA_DIRS"

0 commit comments

Comments
 (0)