Skip to content

nix-copy-closure: create LegacySSHStoreConfig directly #15197

Merged
Ericson2314 merged 2 commits intoNixOS:masterfrom
obsidiansystems:ssh-store-config-direct
Feb 11, 2026
Merged

nix-copy-closure: create LegacySSHStoreConfig directly #15197
Ericson2314 merged 2 commits intoNixOS:masterfrom
obsidiansystems:ssh-store-config-direct

Conversation

@amaanq
Copy link
Member

@amaanq amaanq commented Feb 11, 2026

Instead of constructing a StoreReference and letting openStore() resolve it, this commit creates the store config directly and call openStore() on it. This avoids the indirection through the store registry.

Motivation

Instead of constructing a StoreReference and letting openStore() resolve it,
create the store config directly and call openStore() on it. This avoids the
indirection through the store registry.

Context

This is a follow-up to #15195 (comment)


Add 👍 to pull requests you find important.

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

@amaanq amaanq requested a review from edolstra as a code owner February 11, 2026 04:11
@github-actions github-actions bot added the new-cli Relating to the "nix" command label Feb 11, 2026
@amaanq amaanq force-pushed the ssh-store-config-direct branch 3 times, most recently from 9c0f1f2 to 8ba4f61 Compare February 11, 2026 04:21
Stores hold their config as `ref<const Config>` or `const Config &`,
so `Setting<>` fields are already immutable after store construction.
The field-level `const` is redundant and prevents pre-construction
mutation which is sometimes useful. This commit updates these settings by dropping the `const` qualifier, as it's not needed.
@amaanq amaanq force-pushed the ssh-store-config-direct branch from 8ba4f61 to f1389ef Compare February 11, 2026 15:30
Instead of constructing a `StoreReference` and letting `openStore()` resolve it,
this commit creates the store config directly and calls `openStore()` on it. This
avoids the indirection through the store registry.
@amaanq amaanq force-pushed the ssh-store-config-direct branch from f1389ef to 8020a84 Compare February 11, 2026 15:31
@Ericson2314 Ericson2314 added this pull request to the merge queue Feb 11, 2026
Merged via the queue into NixOS:master with commit 3c1ad7d Feb 11, 2026
14 checks passed
@Ericson2314 Ericson2314 deleted the ssh-store-config-direct branch February 11, 2026 16:57
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