Skip to content

Get settings info out of headers, out of libutil #11033

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Ericson2314
Copy link
Member

@Ericson2314 Ericson2314 commented Jul 3, 2024

Motivation

Want to separate the current configuration script and args infra from the core libraries (libstore and libexpr), where it doesn't belong, and push down into libmain.

Context

Do not review by commits

  • contains commits from a different PR that are listed here because that PR was squashed
  • not much of useful separation anyway in this commit history

Progress on #5638

Depends on #11139

Priorities and Process

Add 👍 to pull requests you find important.

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

@roberth roberth added the settings Settings, global flags, nix.conf label Jul 5, 2024
@github-actions github-actions bot added store Issues and pull requests concerning the Nix store new-cli Relating to the "nix" command repl The Read Eval Print Loop, "nix repl" command and debugger c api Nix as a C library with a stable interface labels Jul 17, 2024
@github-actions github-actions bot added the with-tests Issues related to testing. PRs with tests have some priority label Aug 28, 2024
@github-actions github-actions bot added the fetching Networking with the outside (non-Nix) world, input locking label Apr 17, 2025
@Ericson2314 Ericson2314 force-pushed the settings-split branch 5 times, most recently from 4722825 to d4a6f78 Compare May 14, 2025 19:15
@Ericson2314 Ericson2314 force-pushed the settings-split branch 3 times, most recently from b0e198c to 0c09ca2 Compare May 23, 2025 19:22
@Ericson2314 Ericson2314 force-pushed the settings-split branch 2 times, most recently from add27e0 to a278525 Compare May 23, 2025 20:29
Ericson2314 and others added 2 commits May 23, 2025 16:49
Motivation:

See the linked issues for details.

The most notable user-relevant bits are:

- This cleans up the `MountedSSHStore`: decomposed into its orthogonal parts

- This brings us pretty close to being able to then implement a JSON-based config.
   - Store query parameters can be JSON
   - Stores can entirely be specified via JSON objects, but this is not yet hooked up to anything.

Also behind the scenes have these benefits:

1. The docs are moved out of the headers, good for less rebuilding when they changes
2. Stores are always constructed from store configs
3. Use JSON, avoid custom serializers

Context:

Part of NixOS#11106

Co-Authored-By: Robert Hensing <[email protected]>
Co-authored-by: Sergei Zimmerman <[email protected]>
Also make a tiny bit of progress on libstore
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 documentation fetching Networking with the outside (non-Nix) world, input locking new-cli Relating to the "nix" command repl The Read Eval Print Loop, "nix repl" command and debugger settings Settings, global flags, nix.conf store Issues and pull requests concerning the Nix store with-tests Issues related to testing. PRs with tests have some priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants