keygen_no_home
Diagnostic `nanook::cli::keygen_no_home`
Summary
cannot determine default identity path: $HOME is not set
Help
pass --path /absolute/path/to/id_ed25519 explicitly
Details
When this fires
nanook keygen was invoked without --path and Identity::default_path() returned None because $HOME isn't set in the environment. We won't guess a default here. Common in stripped service-manager units, minimal Docker shells, or some sudo configurations that scrub the env.
What to check
Either set $HOME for the invocation, or pass --path explicitly:
If this is happening under systemd, add Environment=HOME=/var/lib/nanook to the unit. Under sudo, use sudo -H or sudo HOME=$HOME nanook keygen.