Skip to content

libcmd: add new StoreConfigCommand class#15145

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:storeconfigcommand
Feb 4, 2026
Merged

libcmd: add new StoreConfigCommand class#15145
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:storeconfigcommand

Conversation

@artemist
Copy link
Member

@artemist artemist commented Feb 4, 2026

Motivation

I needed this change in #15143, but it is not related to any of the features in that PR. it may also be useful for other future commands that want store configuration without opening the store, as a StoreCommand would do.

At the same time, make copy commands more clear by making store choice
for updateProfile explicit and removing the unused getDstStore function
in StoreCommand. This was a layer violation, as StoreCommand does
not have a concept of a source/destination store distinction.

Context


Add 👍 to pull requests you find important.

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

@artemist artemist requested a review from edolstra as a code owner February 4, 2026 17:04
@github-actions github-actions bot added the new-cli Relating to the "nix" command label Feb 4, 2026
@artemist artemist force-pushed the storeconfigcommand branch 2 times, most recently from 7e45c77 to 45977e8 Compare February 4, 2026 19:20
@Ericson2314 Ericson2314 changed the title libcmd: add new StoreConfigCommand class libcmd: add new StoreConfigCommand class Feb 4, 2026
Useful for commands that need a `StoreConfig` but do not want to open
the store, as a `StoreCommand` would do.

At the same time, make copy commands more clear by making store choice
for `updateProfile` explicit and removing the unused `getDstStore` function
in `StoreCommand`. This was a layer violation, as `StoreCommand` does
not have a concept of a source/destination store distinction.
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.

Very excited to see that tech debt gone!

@Ericson2314 Ericson2314 added this pull request to the merge queue Feb 4, 2026
Merged via the queue into NixOS:master with commit 037a194 Feb 4, 2026
14 checks passed
@Ericson2314 Ericson2314 deleted the storeconfigcommand branch February 4, 2026 20:46
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