builtin:buildenv derivations try to load xp settings #1174

Open
opened 2026-04-03 19:33:59 +00:00 by winter · 2 comments
Member

(Horrible title, sorry.)

Describe the bug

When a builtin:buildenv derivation is built, spurious warnings about xp options are shown.

Steps To Reproduce

  1. Install Lix with the official installer
  2. Attempt to install home-manager standalone, which builds an environment using builtin:buildenv through nix-env
  3. Observe Ignoring setting 'bash-prompt-prefix' because experimental feature 'nix-command' is not enabled

Expected behavior

For this warning to not be emitted.

nix --version output

nix (Lix, like Nix) 2.95.1
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux, x86_64-v4-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/exedev/.config/nix/nix.conf:/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/slkbw0cg08jhfsax6kc0bf6rvw7rkl26-lix-2.95.1/share
*(Horrible title, sorry.)* ## Describe the bug When a `builtin:buildenv` derivation is built, spurious warnings about xp options are shown. ## Steps To Reproduce 1. Install Lix with the official installer 2. Attempt to install home-manager standalone, which builds an environment using `builtin:buildenv` through `nix-env` 3. Observe `Ignoring setting 'bash-prompt-prefix' because experimental feature 'nix-command' is not enabled` ## Expected behavior For this warning to not be emitted. ## `nix --version` output ``` nix (Lix, like Nix) 2.95.1 System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux, x86_64-v4-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/exedev/.config/nix/nix.conf:/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/slkbw0cg08jhfsax6kc0bf6rvw7rkl26-lix-2.95.1/share ```
Owner

Don't these kinds of warnings show up for like. almost every command?

Don't these kinds of warnings show up for like. almost every command?
Author
Member

No, because I have nix-command enabled.

No, because I *have* `nix-command` enabled.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#1174
No description provided.