Skip to content

libstore: move command-specific settings to their own files#15099

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:split-command-specific-settings
Jan 27, 2026
Merged

libstore: move command-specific settings to their own files#15099
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:split-command-specific-settings

Conversation

@amaanq
Copy link
Member

@amaanq amaanq commented Jan 27, 2026

Motivation

The two settings envKeepDerivations and upgradeNixStorePathUrl were only used in one command each, so it makes more sense to move them to their own files. This commit moves them both into a small self-contained settings struct and registers them with the global config.

Context


Add 👍 to pull requests you find important.

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

The two settings `envKeepDerivations` and `upgradeNixStorePathUrl` were
only used in one command each, so it makes more sense to move them to
their own files. This commit moves them both into a small self-contained
settings struct and registers them with the global config.
@github-actions github-actions bot added the new-cli Relating to the "nix" command label Jan 27, 2026
Copy link
Member

@Ericson2314 Ericson2314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is exactly analogous to what I did way back in #7739, and it should be good for the same reason.

(We should care much more about global variables in the libraries than in the end executable.)

@Ericson2314 Ericson2314 added this pull request to the merge queue Jan 27, 2026
Merged via the queue into NixOS:master with commit f326f02 Jan 27, 2026
14 checks passed
@Ericson2314 Ericson2314 deleted the split-command-specific-settings branch January 27, 2026 19:47
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