Skip to content

remote-store: do not forward use-xdg-base-directories#16045

Open
filaka771 wants to merge 1 commit into
NixOS:masterfrom
filaka771:fix/use-xdg-base-directories-warn
Open

remote-store: do not forward use-xdg-base-directories#16045
filaka771 wants to merge 1 commit into
NixOS:masterfrom
filaka771:fix/use-xdg-base-directories-warn

Conversation

@filaka771

Copy link
Copy Markdown

Motivation

Fix #15988.
When passing --option use-xdg-base-directories to certain nix-env subcommands like --install, a warning is erroneously printed.

According to the nix-daemon documentation, the purpose of the daemon is to run builds and other operations on behalf of unprivileged users. Therefore, it is weird to forward use-xdg-base-directories option.

The image below shows that the warning is reproduced, while the expected XDG profile symlinks are still created:
nix-bug-repro

The fix removes settings.useXDGBaseDirectories.name from the forwarded override set.

The image below shows that after the fix warning no longer appears, while expected XDG profile symlinks are still created:
nix-fix-repro

Context

@github-actions github-actions Bot added with-tests Issues related to testing. PRs with tests have some priority store Issues and pull requests concerning the Nix store labels Jun 21, 2026
@filaka771

Copy link
Copy Markdown
Author

Hi @YoshiRulz, I opened this PR to fix the issue you reported. I’d really appreciate your review when you have time.

Hi @lisanna-dettwyler, since you participated in the issue discussion and suggested a possible approach for the fix, I’d also appreciate your feedback when you have time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

store Issues and pull requests concerning the Nix store with-tests Issues related to testing. PRs with tests have some priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nix-env warns that --option use-xdg-base-directories is ignored but it is in fact applied

1 participant