Skip to content
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

Detect remote systemFeatures automatically #10894

Open
roberth opened this issue Jun 12, 2024 · 0 comments
Open

Detect remote systemFeatures automatically #10894

roberth opened this issue Jun 12, 2024 · 0 comments
Labels
feature Feature request or proposal protocol Things involving the daemon protocol & compatibility issues settings Settings, global flags, nix.conf

Comments

@roberth
Copy link
Member

roberth commented Jun 12, 2024

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

  • Nix can ask the remote builder which features it implements.
  • Nix maintains a cache of systemFeatures for each of its builders.
  • This information is transmitted not as a mere list features, but a list of combinations of derivation systems and features; not all combinations may be valid!
    • example: macOS host may support aarch64-linux by forwarding to a VM, but does not support nested virtualization, so virtualization features only apply to aarch64-darwin.
  • The exposed combinations of features can be derived from the usual config, or set explicitly

Describe alternatives you've considered

Additional context

Related terms: requiredFeatures mandatoryFeatures

Priorities

Add 👍 to issues you find important.

@roberth roberth added feature Feature request or proposal protocol Things involving the daemon protocol & compatibility issues settings Settings, global flags, nix.conf labels Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request or proposal protocol Things involving the daemon protocol & compatibility issues settings Settings, global flags, nix.conf
Projects
None yet
Development

No branches or pull requests

1 participant