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
merge into: clan:main
clan:main
clan:update-devFlake-nixpkgs-dev-26.05
clan:update-nixpkgs
clan:eureka-cpu/update-test-script
clan:update-nixpkgs-26.05
clan:26.05
clan:update-data-mesher
clan:update-sops-nix
clan:update-flake-parts
clan:update-nix-darwin
clan:pinpox/vars-secrets-before-networkd
clan:age-per-file-source
clan:backport/26.05-darwin-sandbox-tests
clan:oneingan-revive/7400-main-f7595b76
clan:pinpox/clan-cli-wrapper-args
clan:pinpox/sandbox-works-darwin-impure
clan:fix-structured-wrapper-args
clan:pinpox/unify-getting-started
clan:pinpox/fix-cmd-line-buffering
clan:eureka-cpu/sequential-deployment
clan:pinpox/age-restart-units
clan:pinpox/init-no-admin-keys
clan:age-only-secrets
clan:test-nixbot-farm
clan:fix/borgbackup-restore-arg-guards
clan:fix/clan-cmd-error-api-message
clan:fix/postgresql-restore-stop-guard
clan:fix/secret-name-path-traversal
clan:fix/get-machine-tag-map
clan:gui-revival-wt
clan:gui-revival
clan:inventory-nixpkgs
clan:ke-diagnose-full-disk-on-activation
clan:remove-dead-components
clan:push-rpmpkpwntkpx
clan:rl-iroh
clan:templates-fix-2
clan:networking-guides
clan:docs-release-fixup
clan:template-copy-replace
clan:bump-templates
clan:zerotier-migration-message
clan:deprecate-clanpkgs
clan:service-deprecation
clan:release-diff
clan:hsjobeki-patch-2
clan:gather-breakage-26-05
clan:push-xzmskvotpuqo
clan:push-kkkourwouovl
clan:mock-rng
clan:doc-pages
clan:25.11
clan:hgl-docs
clan:zerotier-broken
clan:hgl-cli-var
clan:push-yoktrnrsxunp
clan:ke-container-upstream
clan:no-pkgs
clan:push-oqxutzzokmrn
clan:ke-flake-vars-cli-vars
clan:hgl-cli
clan:remove-select
clan:governance
clan:fix-vars-script
clan:dm-wg-star-namespaces
clan:push-rxxsoluyyynr
clan:push-qmntxolnuzuo
clan:push-okmytrqowyqy
clan:pr-7172
clan:planemaniac/main
clan:fix-deploy-vars
clan:documentation-for-machine
clan:push-svvlvonvykyz
clan:push-svvlvonv
clan:ke-cli-docs-inline-with-validation
clan:ke-remove-superfluous-gitignore
clan:slop-lint
clan:push-nkotmrkxouut
clan:push-vxoqznoxsmxn
clan:hsjobeki-patch-1
clan:iso_pr_v2
clan:flake-vars
clan:btrfs-disk-templates
clan:push-rsukkkymktxq
clan:lints
clan:pr-6858
clan:docs-condense
clan:ke-track-files-no-commit
clan:ke-docs-delete-machine
clan:docupdates012026
clan:ke-test-sizelint
clan:wireguard-exports
clan:simplify-select
clan:test-big-pr
clan:push-wsnpnwyzuqqu
clan:push-tklsrvotlysz
clan:push-lyuynpksppnm
clan:headline-levels
clan:push-mxosyunptxsm
clan:push-ytnkqzvqkvzs
clan:push-ovrvponxzmoq
clan:ke-docs-abbrev
clan:add-vale-linting
clan:25-11-installer
clan:ke-test-pr
clan:ke-create-fill-in-values-template
clan:push-qynqwmxyvwkq
clan:graph-class
clan:fix-update-decrypt-only-target-machines
clan:fix-flash-installer
clan:deployment-opt
clan:ke-stable-mike-25.11
clan:password-store-activation
clan:activation-test
clan:backport-passage
clan:hgl-ui2
clan:test-download
clan:WIP-store
clan:push-kvxsnswmtyxn
clan:ke-bump-nixpkgs-to-branchoff
clan:yggdrasil-fix-exports
clan:MoritzBoehme-coredns-ipv6
clan:friedow-feat/extend-meta-tld
clan:push-sotuxokuxntv
clan:ke-checkpoint-for-checks
clan:ke-install-hardware-config
clan:clan-25.05
clan:ke-fix-cr
clan:lopter-lo-fix-error-msg
clan:hgl-ui-textfield
clan:revers-update-vars-break
clan:pr-5024
clan:serve-json-telegraf
clan:clean-dead-code
clan:monitoring-service-prometheus
clan:flake-compat
clan:fix/combobox-form-binding
clan:migration-docs
clan:remove-modules-2
clan:nim65s-multi-wifi
clan:ke-facts-cli-warning
clan:update-devFlake-private-nixpkgs-dev
clan:ke-disko-shell-completions
clan:templates-2
clan:prep-ui-version2
clan:pr-4283-generate_test_vars-fix-it
clan:pr-3785
clan:vars-new
clan:speed-up-vars-check
clan:agit-4042
clan:generate-test-vars-precache
clan:kenji/ke-fix-ssh-deploy
clan:ssh-fix
clan:fix-flake-cache-chroot
clan:nix_transform_host_options
clan:push-trllkluxupnn
clan:feat/terminal-ui-component
clan:feat/clan-uri-in-route
clan:admin-migrate-service
clan:pinned-clan-core
clan:improve-container
clan:Qubasa-replace_machine_name_with_machine_obj
clan:control-master
clan:check-the-checks
No Reviewers
Labels
Clear labels
Type/Regression
Good first issue
Help wanted
Breaking change in behavior
Architecture
Change
Fundamental change spanning across components
Component
API
Issues regarding the clan api
Component
App
Issues regarding the clan app
Component
Backup
Component
CICD
Component
CLI
Component
Clan Services
Component
Clan module system
Issues regarding the clan module system including inventory.
Component
Docs
Component
Flake
Component
Install & Update
Component
Networking
Component
Select
Issues regarding select - the caching layer
Component
Templates
Issues regarding templates.
Component
Testing
Issues regarding testing
Component
VARS
Issues regarding vars.
Component
Virtualisation
Issues regarding virtual machines.
mq
merging
mq
queued
mq
testing
mq
waiting
OS
Darwin
OS
Linux
Priority
Critical
1
Priority
High
2
Priority
Medium
3
Priority
Low
4
Status
Blocked
1
Status
On Hold
2
Status
Needs More Info
3
Status
Needs Review
4
Status
In Progress
5
Status
Won't Fix
6
Status
Available
Status
Duplicate
Type
Community Contribution
1
contributed by members of the Clan community
Type
Discussion
1
Type
Bug
2
Type
Question
3
Type
Epic
4
Type
Feature Request
5
Type
User Experience
5
Type
Enhancement
6
Type
Maintenance
7
Type
Documentation
Type
Question
Question to be resolved
No labels
Type
Community Contribution
1
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: clan/clan-core#7477
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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
New major features
a0ab58609etoaa349477c9aa349477c9toefda81c65defda81c65dtoc7d9c57ce4c7d9c57ce4to76caf65543View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.