Skip to content

libstore: extract ProfileDirsOptions from Settings#15228

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:profile-dirs-options
Feb 13, 2026
Merged

libstore: extract ProfileDirsOptions from Settings#15228
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:profile-dirs-options

Conversation

@amaanq
Copy link
Member

@amaanq amaanq commented Feb 13, 2026

Motivation

This commit moves nixStateDir and useXDGBaseDirectories into a dedicated ProfileDirsOptions struct and threads it through the profile directory functions (profilesDir, rootProfilesDir, defaultChannelsDir, rootChannelsDir, getDefaultProfile) so they no longer read from the global Settings object directly. This follows the same pattern as LocalSettings, WorkerSettings, and NarInfoDiskCacheSettings.

Context

Progress on #5638


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@github-actions github-actions bot added the new-cli Relating to the "nix" command label Feb 13, 2026
This commit moves `nixStateDir` and `useXDGBaseDirectories` into a dedicated `ProfileDirsOptions` struct and threads it through the profile directory functions (`profilesDir`, `rootProfilesDir`, `defaultChannelsDir`, `rootChannelsDir`, `getDefaultProfile`) so they no longer read from the global `Settings` object directly. This follows the same pattern as `LocalSettings`, `WorkerSettings`, and `NarInfoDiskCacheSettings`.

Progress on NixOS#5638

Co-authored-by: Amaan Qureshi <git@amaanq.com>
@amaanq amaanq force-pushed the profile-dirs-options branch from d4cf0ce to 002cbef Compare February 13, 2026 17:43
@Ericson2314 Ericson2314 added this pull request to the merge queue Feb 13, 2026
Merged via the queue into NixOS:master with commit b818594 Feb 13, 2026
14 checks passed
@Ericson2314 Ericson2314 deleted the profile-dirs-options branch February 13, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-cli Relating to the "nix" command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants