Skip to content

feat: install bootvine on dahlia - #12

Merged
tnmt merged 1 commit into
mainfrom
feat/bootvine-dahlia
Nov 17, 2026
Merged

tnmt merged 1 commit into
mainfrom
feat/bootvine-dahlia

Conversation

@tnmt

@tnmt tnmt commented Nov 16, 2026

Copy link
Copy Markdown
Owner

概要

dahlia に bootvine を入れる。起動とシャットダウン時の systemd ジョブを、コンソール上に依存ツリーとして表示するツール。

変更

  • flake.nix: bootvine input を flake = false で追加(main の 91b7cd2、v0.1.4)。上流 flake の outputs を経由しないので、crane と rust-overlay は lock に入らない。ax と同じやり方。
  • modules/nixos/services/bootvine.nix: 上流の nix/nixos-module.nix を import して services.bootvine.enable = true にする。パッケージはホストの pkgs の rustPlatform でビルドされる。
  • hosts/dahlia/default.nix: services.bootvine を import に追加。

確認

  • nix build .#nixosConfigurations.dahlia.config.system.build.toplevel が通る。
  • 生成物で bootvine.service は sysinit.target.wants、bootvine-shutdown.service は shutdown.target.wants に入っている。initrd の依存にも bootvine-0.1.4 が入っている。
  • 実機への反映と再起動は行っていない。

反映時の注意

  • NixOS 26.11 の initrd は systemd 版しかないので、追加設定なしで initrd 段階から表示される。
  • dahlia は LUKS を TPM2 で解錠している。TPM2 で解錠できずパスフレーズを求められたときは、bootvine が自分の画面でその入力を受け付ける。
  • 起動後は greetd が自分の VT に切り替えた時点で、bootvine がコンソールを手放す。
  • 反映は nixos-rebuild switch のあと再起動。不具合が出たら hosts/dahlia/default.nix の services.bootvine を外して rebuild すれば元に戻る。

🤖 Generated with Claude Code

Add bootvine as a non-flake input and import its NixOS module, so it is
built with the host pkgs. dahlia already runs a systemd initrd, so the
tree starts in the initrd and also answers the LUKS passphrase prompt
when TPM2 unlock fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tnmt
tnmt marked this pull request as ready for review November 17, 2026 01:25
@tnmt
tnmt merged commit 6fee015 into main Nov 17, 2026
7 checks passed
@tnmt
tnmt deleted the feat/bootvine-dahlia branch November 17, 2026 01:28
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.

1 participant