Fix the wording about what is an "active profile" in nix-env-query(1) #370

Open
opened 2024-06-02 00:31:03 +00:00 by jade · 0 comments
Owner

--installed:

The query operates on the store paths that are installed in the current generation of the active profile. This is the default.

What do you mean active profile? I see a NIX_PROFILE thing below in the same page, but there are multiple active profiles in the default install!

By default Lix will have /nix/var/nix/profiles/default and the user profile in PATH. The user profile is, I think, what nix-env -q looks at by default, and quoth NIX_PROFILE in nix-env-query(1):

   •  NIX_PROFILE
     Location of the Nix profile. Defaults to the target of the symlink ~/.nix-profile, if it exists, or /nix/var/nix/profiles/default otherwise.
`--installed`: > The query operates on the store paths that are installed in the current generation of the active profile. This is the default. What do you *mean* active profile? I see a NIX_PROFILE thing below in the same page, but **there are multiple active profiles in the default install**! By default Lix will have /nix/var/nix/profiles/default *and* the user profile in PATH. The *user profile* is, I think, what `nix-env -q` looks at by default, and quoth NIX_PROFILE in nix-env-query(1): > • NIX_PROFILE > Location of the Nix profile. Defaults to the target of the symlink ~/.nix-profile, if it exists, or /nix/var/nix/profiles/default otherwise.
jade added the
docs
E/help wanted
labels 2024-06-02 00:31:49 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#370
No description provided.