Skip to content

Conversation

ryota2357
Copy link

@ryota2357 ryota2357 commented Oct 18, 2025

Motivation

In the fish scripts, NIX_PROFILES is currently set to ... $HOME/.nix-profile, even though the scripts compute NIX_LINK (respecting XDG_STATE_HOME).

The sh equivalents already export:

export NIX_PROFILES="@localstatedir@/nix/profiles/default $NIX_LINK"

export NIX_PROFILES="@localstatedir@/nix/profiles/default $NIX_LINK"

To keep fish in sync with sh behavior and respect XDG, I changed to using $NIX_LINK in fish.

Context

This is related to point 5 in #9441


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@ryota2357 ryota2357 requested a review from edolstra as a code owner October 18, 2025 03:13
@ryota2357 ryota2357 force-pushed the fix-fish-nix-profiles-use-nix-link branch from c032dcb to d5f4653 Compare October 21, 2025 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant