-
-
Notifications
You must be signed in to change notification settings - Fork 17.2k
nixos: XDG Base Directory Specification environment variables #432111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
cafkafk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool idea, I'm however wondering how controversial this change would be, or if it would be considered something that should just be done through home manager. I'm personally not sure where I land on that question, but I get the sense that it would be a good idea to get a slight amount of consensus, so that people aren't surprised this was done.
48646a3 to
d904c49
Compare
d904c49 to
1629d0f
Compare
1629d0f to
3370b1f
Compare
3370b1f to
bcf4088
Compare
cafkafk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed default from true to lib.versionAtLeast config.system.stateVersion "25.11"
This may be a good start, but I think it would also be wise to add this change to the release notes as well, just so people will know that this behavior was added.
Done. Also rebased on top of |
Closes #224525.
The spec: https://specifications.freedesktop.org/basedir-spec/latest/
This PR introduces an
xdg.directories.enableoption, which automatically sets up the following environment variables:$XDG_CACHE_HOME$XDG_CONFIG_HOME$XDG_DATA_HOME$XDG_STATE_HOMETheir default values are taken from the spec, but can be overridden using
config.xdg.directories.cache-home& so on.Newbie question:
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.