Rework /etc/nix/machines
definitions #854
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#854
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is your feature request related to a problem? Please describe.
The current
/etc/nix/machines
format is brittle and hard to work with:nix doctor
-like command to validate or diagnose misconfigurations short fornix store ping --store ssh://...
which doesn't tell too much about the negotiated feature sets.This makes it error-prone even for the most experienced Nix users.
Describe the solution you'd like
Introduce a structured format for remote builder configuration, such as JSON, TOML, or even a Nix expression. For instance:
/etc/nix/machines.json
or/etc/nix/machines.d/*.toml
host
,sshUser
,sshKey
,system
,maxJobs
, etc.).group = "slow-arm-builders";
), with ways to enable/disable them via CLI or configuration.nix doctor remote-builders [--group XYZ] [--machine NAME] [--simulate-build-drv XYZ]
command to validate SSH access, parse errors, missing keys, and system mismatches.Describe alternatives you've considered
I think this is probably subsumed by "rewrite the config system to toml" which I think we have a bug somewhere for...
I think this is probably orthogonal to rewriting the whole config system to TOML, we can already just start by taking care of the machines format independently.
Nonetheless, achieving the full features mentioned here is blocked on proper RPC because changing builders is a trusted setting, it can only be cleared and this leads to a bunch of stupid things.