Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
run: |
set -euo pipefail

# nixpkgs-codex / nixpkgs-gh / nixpkgs-cloudflared / hermes-agent は flake.nix で
# nixpkgs-codex / nixpkgs-gh / nixpkgs-cloudflared / hermes-agent / nix-darwin は flake.nix で
# commit / tag 固定しており nix flake update しても差分が出ないため除外する
# flake.nix 側で pin を外したら、ここからも削除しないと PR が二度と作られない
pinned='["nixpkgs-codex","nixpkgs-gh","nixpkgs-cloudflared","hermes-agent"]'
pinned='["nixpkgs-codex","nixpkgs-gh","nixpkgs-cloudflared","hermes-agent","nix-darwin"]'

flake_targets=$(jq -c --argjson pinned "$pinned" \
'.nodes.root.inputs | keys | map(select(. as $n | ($pinned | index($n)) | not)) | map({kind: "flake", name: .})' \
Expand Down
11 changes: 9 additions & 2 deletions docs/reference/mac-mini-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,15 @@ tail -f /var/log/comin.log

- nix-darwin の `activate-user` 削除 PR
([nix-darwin/nix-darwin#1825](https://github.com/nix-darwin/nix-darwin/pull/1825))
がマージされた rev に flake.lock を上げると comin の darwin deploy が壊れる。
nix-darwin を bump する PR ではここを確認する。
がマージされた rev に flake.lock を上げると comin の darwin deploy が壊れる
([nlewo/comin#238](https://github.com/nlewo/comin/issues/238))。現在は `flake.nix` で
nix-darwin を #1825 直前の commit に固定している。修正 PR
[nlewo/comin#239](https://github.com/nlewo/comin/pull/239) が入った comin に上げたら固定を外す。
- comin 自身の plist が変わる deploy では、activation 中の launchd reload で comin が
自分を止めてしまい、activation が途中で終わって daemon も未登録のまま残る
([nlewo/comin#231](https://github.com/nlewo/comin/pull/231) で修正予定)。
`/var/log/comin.log` が `reloading service com.github.nlewo.comin` で止まっていたら
手動 fallback で switch する。
- home-manager の activation は `launchctl asuser` 経由なので、対象ユーザーが
ログインしている前提 (常時ログインの Mac mini なら実質問題なし)。
- macOS の再起動要否は comin が検知しないので自分で判断する。
Expand Down
7 changes: 4 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
# unstable はビルドキャッシュが Hydra に追いつかないことがあり、
# 2GB RAM の kexec installer 上で大きな build が走ると OOM するため。
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-25.11";
# activate-user 削除 (nix-darwin #1825) の直前に固定。comin の darwin deploy が
# activate-user を前提にしており壊れるため (nlewo/comin#238)。comin input を
# comin#239 を含む rev に上げたら pin を外し、update.yml の pinned からも消す。
nix-darwin = {
url = "github:LnL7/nix-darwin";
url = "github:LnL7/nix-darwin/99de553ddfa9052644c6df5f621eb0ddc6812e51";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
Expand Down
Loading