[Nix#8978] bug: some nix commands do not create the default profile if it is missing #115

Open
opened 2024-03-16 06:44:59 +00:00 by lix-bot · 0 comments
Member

Upstream-Issue: NixOS/nix#8978

Describe the bug

In nix v2.13.3 executing nix run creates the current user's profile if it does not exist yet at the default location /nix/var/nix/profiles/per-user/$USER.
In newer versions of nix (e.g. v2.17.0) the default profile location of a user is $HOME/.local/state/nix/profiles/profile, but nix run and nix shell ... do not create it if it's missing. Other commands like nix profile list, nix profile install, nix-env -q and even nix --help do create the default profile.

Related: https://github.com/nix-community/home-manager/issues/4403

Upstream-Issue: https://git.lix.systems/NixOS/nix/issues/8978 **Describe the bug** In nix v2.13.3 executing `nix run` creates the current user's profile if it does not exist yet at the default location `/nix/var/nix/profiles/per-user/$USER`. In newer versions of nix (e.g. v2.17.0) the default profile location of a user is `$HOME/.local/state/nix/profiles/profile`, but `nix run` and `nix shell ... ` do not create it if it's missing. Other commands like `nix profile list`, `nix profile install`, `nix-env -q` and even `nix --help` do create the default profile. Related: https://github.com/nix-community/home-manager/issues/4403
lix-bot added the
bug
imported
labels 2024-03-16 06:44:59 +00:00
qyriad added the
Area/profiles
label 2024-04-27 04:48:00 +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#115
No description provided.