Skip to content

If the profile doesn't exist, run nix-env --version#63

Closed
9999years wants to merge 1 commit intomainfrom
wiggles/txtp
Closed

If the profile doesn't exist, run nix-env --version#63
9999years wants to merge 1 commit intomainfrom
wiggles/txtp

Conversation

@9999years
Copy link
Copy Markdown
Owner

Yes, simply running nix-env --version will create a ~/.nix-profile symlinked to ~/.local/state/nix/profiles/profile, even if ~/.local/state/nix/profiles/profile does not exist.

See the classic issue: NixOS/nix#3051

I don't think this is necessary now that I fixed the logic that was creating this symlink in npingler in #62, but I'm opening this to save the code.

Yes, simply running `nix-env --version` will create a `~/.nix-profile`
symlinked to `~/.local/state/nix/profiles/profile`, even if
`~/.local/state/nix/profiles/profile` does not exist.

See the classic issue: NixOS/nix#3051
@9999years 9999years closed this Dec 11, 2025
@9999years 9999years deleted the wiggles/txtp branch December 11, 2025 01:16
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