Skip to content

libstore: extract WorkerSettings from Settings#15211

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:worker-settings
Feb 12, 2026
Merged

libstore: extract WorkerSettings from Settings#15211
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:worker-settings

Conversation

@amaanq
Copy link
Member

@amaanq amaanq commented Feb 12, 2026

Motivation

This commit moves pollInterval, maxSubstitutionJobs, postBuildHook, and logLines into a dedicated WorkerSettings struct that Settings privately inherits from, as they are only used by the build worker subsystem. This follows the same pattern as LocalSettings and LogFileSettings.


Progress on #5638

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 Ericson2314 as a code owner February 12, 2026 16:19
@amaanq amaanq force-pushed the worker-settings branch 3 times, most recently from 7d216bf to 0bdeb75 Compare February 12, 2026 17:12
@amaanq amaanq requested a review from edolstra as a code owner February 12, 2026 17:12
@github-actions github-actions bot added new-cli Relating to the "nix" command store Issues and pull requests concerning the Nix store labels Feb 12, 2026
@amaanq amaanq force-pushed the worker-settings branch 2 times, most recently from 47e39b9 to 1766585 Compare February 12, 2026 18:36
@github-actions github-actions bot added fetching Networking with the outside (non-Nix) world, input locking c api Nix as a C library with a stable interface labels Feb 12, 2026
@Ericson2314 Ericson2314 marked this pull request as draft February 12, 2026 18:51
@Ericson2314 Ericson2314 marked this pull request as ready for review February 12, 2026 20:03
This commit  moves `pollInterval`, `maxSubstitutionJobs`, `postBuildHook`, and `logLines` into a dedicated `WorkerSettings` struct that `Settings` privately inherits from, as they are only used by the build worker subsystem. This follows the same pattern as `LocalSettings` and `LogFileSettings`.
auto-merge was automatically disabled February 12, 2026 20:31

Head branch was pushed to by a user without write access

@Ericson2314 Ericson2314 added this pull request to the merge queue Feb 12, 2026
Merged via the queue into NixOS:master with commit a3d5117 Feb 12, 2026
14 checks passed
@Ericson2314 Ericson2314 deleted the worker-settings branch February 12, 2026 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c api Nix as a C library with a stable interface fetching Networking with the outside (non-Nix) world, input locking new-cli Relating to the "nix" command store Issues and pull requests concerning the Nix store

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants