Skip to content

darwin: run activate-user only when it exists - #239

Open
KakatkarAkshay wants to merge 1 commit into
nlewo:mainfrom
KakatkarAkshay:darwin-activate-user
Open

KakatkarAkshay wants to merge 1 commit into
nlewo:mainfrom
KakatkarAkshay:darwin-activate-user

Conversation

@KakatkarAkshay

Copy link
Copy Markdown

Fixes #238.

nix-darwin no longer builds <system>/activate-user (nix-darwin/nix-darwin#1825). comin still ran it unconditionally, so every Darwin deployment against current nix-darwin failed before activate ran.

comin now runs activate-user only when it exists, as proposed in #238. Older nix-darwin systems still ship it, so they keep working.

The new test calls switchToConfigurationDarwin on an out path with and without activate-user. Without the fix, the second case fails with fork/exec .../activate-user: no such file or directory.

nix-darwin no longer builds activate-user since nix-darwin/nix-darwin#1825, so every deployment failed before running activate. Older nix-darwin systems still ship it, so it is still run when present.
matteo-pacini added a commit to matteo-pacini/nixos-configs that referenced this pull request Nov 26, 2026
nix-darwin stopped building activate-user (nix-darwin/nix-darwin#1825),
which reached us with the #514 flake update. comin v0.14.0 still runs
it unconditionally, so NightSprings and WorkLaptop fail every deploy
before activate runs.

Patch comin with a port of nlewo/comin#239 to v0.14.0: run
activate-user only when it exists. Waits on that PR being merged.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
thinceller added a commit to thinceller/dotfiles that referenced this pull request Nov 29, 2026
…y を直す (#167)

nix-darwin #1825 (af20ff1) で activate-user が削除され、comin の darwin
executor が activate-user を必ず実行するため mac-mini への deploy が失敗
していた (nlewo/comin#238)。修正 PR nlewo/comin#239 が入った comin に上げる
まで、nix-darwin を #1825 直前の 99de553 に固定する。

- update.yml の pinned に nix-darwin を追加
- mac-mini-deploy.md に固定の経緯と comin の自己 reload 問題 (nlewo/comin#231) を追記


Claude-Session: https://claude.ai/code/session_01KHUAgb7GVwa1Xb578NXQdQ

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

darwin: deployment fails since nix-darwin dropped activate-user

1 participant