Skip to content

nix-profile.fish: $NIX_STATE_HOME: Warn about old .nix-profile#14810

Open
ilya-bobyr wants to merge 1 commit intoNixOS:masterfrom
ilya-bobyr:pr/nix-fish-NIX_STATE_HOME-check-new-profile-location
Open

nix-profile.fish: $NIX_STATE_HOME: Warn about old .nix-profile#14810
ilya-bobyr wants to merge 1 commit intoNixOS:masterfrom
ilya-bobyr:pr/nix-fish-NIX_STATE_HOME-check-new-profile-location

Conversation

@ilya-bobyr
Copy link
Contributor

Motivation

It seems reasonable to check if both .nix-profile and .local/state/nix/profile are present when $NIX_STATE_HOME is set.

Even more so, $XDG_STATE_HOME is used in the $NIX_LINK_NEW logic, that was effectively disabled in nix-profile.fish.

Note that .local/state/nix/profile is actually an incorrect path, it will be fixed in a subsequent commit.

Context

This is a follow-up for changes in #13245.


Add 👍 to pull requests you find important.

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

@ilya-bobyr ilya-bobyr requested a review from edolstra as a code owner December 16, 2025 11:04
It seems reasonable to check if both `.nix-profile` and
`.local/state/nix/profile` are present when `$NIX_STATE_HOME` is set.

Even more so, `$XDG_STATE_HOME` is used in the `$NIX_LINK_NEW` logic,
that was effectively disabled in `nix-profile.fish`.

Note that `.local/state/nix/profile` is actually an incorrect path, it
will be fixed in a subsequent commit.
@ilya-bobyr ilya-bobyr force-pushed the pr/nix-fish-NIX_STATE_HOME-check-new-profile-location branch from 807145c to e8950c1 Compare January 29, 2026 03:51
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