Skip to content

libstore: remove Settings::nixStore in favor of StoreConfigBase::getDefaultNixStoreDir#15233

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:remove-nixstore-global
Feb 13, 2026
Merged

libstore: remove Settings::nixStore in favor of StoreConfigBase::getDefaultNixStoreDir#15233
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:remove-nixstore-global

Conversation

@amaanq
Copy link
Member

@amaanq amaanq commented Feb 13, 2026

Motivation

This commit removes the nixStore member from Settings and instead computes the default Nix store directory directly in StoreConfigBase::getDefaultNixStoreDir() from env vars (NIX_STORE_DIR, NIX_STORE) or the compile-time default. The method is made public so callers that previously reached through the global settings.nixStore can use it instead.

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 store Issues and pull requests concerning the Nix store label Feb 13, 2026
@amaanq amaanq force-pushed the remove-nixstore-global branch from 7ab7260 to 1cd7a28 Compare February 13, 2026 19:45
…etDefaultNixStoreDir`

This commit removes the `nixStore` member from `Settings` and instead
computes the default Nix store directory directly in
`StoreConfigBase::getDefaultNixStoreDir()` from env vars
(`NIX_STORE_DIR`, `NIX_STORE`) or the compile-time default. The method
is made public so callers that previously reached through the global
`settings.nixStore` can use it instead.

Progress on NixOS#5638
@amaanq amaanq force-pushed the remove-nixstore-global branch from 1cd7a28 to 12f9738 Compare February 13, 2026 19:45
@Ericson2314 Ericson2314 added this pull request to the merge queue Feb 13, 2026
Merged via the queue into NixOS:master with commit 8fadcce Feb 13, 2026
14 checks passed
@Ericson2314 Ericson2314 deleted the remove-nixstore-global branch February 13, 2026 21:13
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants