Skip to content

Commit

Permalink
Add /nix/var/nix/profiles/default/bin to PATH
Browse files Browse the repository at this point in the history
At least on one user's machine, after updating macOS - `nix` can only be found in PATH in this directory.
  • Loading branch information
srid committed May 12, 2023
1 parent e517c6a commit 24d431d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
enable = true;
initExtra = ''
# Make Nix and home-manager installed things available in PATH.
export PATH=/run/current-system/sw/bin/:$HOME/.nix-profile/bin:/etc/profiles/per-user/$USER/bin:$PATH
export PATH=/run/current-system/sw/bin/:/nix/var/nix/profiles/default/bin:$HOME/.nix-profile/bin:/etc/profiles/per-user/$USER/bin:$PATH
'';
};

Expand All @@ -37,7 +37,7 @@
enable = true;
envExtra = ''
# Make Nix and home-manager installed things available in PATH.
export PATH=/run/current-system/sw/bin/:$HOME/.nix-profile/bin:/etc/profiles/per-user/$USER/bin:$PATH
export PATH=/run/current-system/sw/bin/:/nix/var/nix/profiles/default/bin:$HOME/.nix-profile/bin:/etc/profiles/per-user/$USER/bin:$PATH
'';
};

Expand Down

0 comments on commit 24d431d

Please sign in to comment.