WIP: machines/update: support --target-host localhost #7477

Draft
visualphoenix wants to merge 1 commits from visualphoenix/clan-core:feat/localhost-deploy-cleanup into main
pull from: visualphoenix/clan-core:feat/localhost-deploy-cleanup
Contributor

Add LocalHost class that deploys locally without SSH. Privilege
escalation probes for NOPASSWD or SUDO_ASKPASS and refuses to proceed
if neither is available — never blocks on a TTY prompt.

Pass --elevate=interactive to opt into password prompts.

Also fixes _copy_closure for remote-build + local-target (pulls via
nix copy --from instead of assuming the closure exists locally).

Description of the change

Checklist

  • Ensured documentation is up to date
  • Added tests for all bug fixes and features
  • Doesn't affect backwards compatibility - or check the next points
    • Added the breaking change and migration details to docs/release-notes.md
    • !!! Review from another person is required BEFORE merge !!!

New major features

  • Added major features
    • All features are mentioned in docs/release-notes.md
    • All features are tested sufficiently via:
      • eval tests (for NixOS modules and nix functions)
      • python tests for python API and CLI code
      • VM or container tests for new clan services
Add LocalHost class that deploys locally without SSH. Privilege escalation probes for NOPASSWD or SUDO_ASKPASS and refuses to proceed if neither is available — never blocks on a TTY prompt. Pass --elevate=interactive to opt into password prompts. Also fixes _copy_closure for remote-build + local-target (pulls via nix copy --from instead of assuming the closure exists locally). ## Description of the change <!-- Brief summary of the change if not already clear from the title --> ## Checklist - [x] Ensured documentation is up to date - [x] Added tests for all bug fixes and features - [x] Doesn't affect backwards compatibility - or check the next points - [ ] Added the breaking change and migration details to docs/release-notes.md - !!! Review from another person is required *BEFORE* merge !!! ## New major features - [ ] Added major features - [x] All features are mentioned in docs/release-notes.md - [ ] All features are tested sufficiently via: - [ ] eval tests (for NixOS modules and nix functions) - [x] python tests for python API and CLI code - [x] VM or container tests for new clan services
clan-bot added the
Type
Community Contribution
1
label 2026-05-20 10:41:24 +00:00
visualphoenix force-pushed feat/localhost-deploy-cleanup from a0ab58609e to aa349477c9 2026-05-20 23:23:07 +00:00 Compare
visualphoenix force-pushed feat/localhost-deploy-cleanup from aa349477c9 to efda81c65d 2026-05-23 14:29:28 +00:00 Compare
visualphoenix force-pushed feat/localhost-deploy-cleanup from efda81c65d to c7d9c57ce4 2026-05-23 18:52:25 +00:00 Compare
visualphoenix added 1 commit 2026-08-31 19:22:48 +00:00
machines/update: support --target-host localhost
buildbot/nix-eval evaluation failed
buildbot/nix-build merge conflict
PR Size Review Check / pr-size-review-gate (pull_request) Failing after 31s
sizelint on each commit / sizelint (pull_request) Failing after 40s
76caf65543
Add LocalHost class that deploys locally without SSH. Privilege
escalation probes for NOPASSWD or SUDO_ASKPASS and refuses to proceed
if neither is available — never blocks on a TTY prompt.

Pass --elevate=interactive to opt into password prompts.

Also fixes _copy_closure for remote-build + local-target (pulls via
nix copy --from instead of assuming the closure exists locally).
visualphoenix force-pushed feat/localhost-deploy-cleanup from c7d9c57ce4 to 76caf65543 2026-08-31 19:22:48 +00:00 Compare
Some checks are pending
buildbot/nix-eval evaluation failed
Required
Details
buildbot/nix-build merge conflict
Required
Details
PR Size Review Check / pr-size-review-gate (pull_request) Failing after 31s
sizelint on each commit / sizelint (pull_request) Failing after 40s
gitea-mq
Required
Checking for merge conflicts…
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u https://git.clan.lol/visualphoenix/clan-core feat/localhost-deploy-cleanup:visualphoenix-feat/localhost-deploy-cleanup
git checkout visualphoenix-feat/localhost-deploy-cleanup
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: clan/clan-core#7477