bug: $env.MYCELIUM_IP not populated in nushell login shells (bash exports in .profile) #112
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_skills#112
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
multi_user_addwritesexport MYCELIUM_IP="..."andexport MYCELIUM_BRIDGE="..."into the new user's.profileand.bashrc, but the login shell it sets for the user is nushell (~/hero/bin/nu). Nushell does not source.profileor.bashrc, so those env vars are never populated in the user's actual shell.Result: every documented command that uses
$env.MYCELIUM_IPerrors immediately on a freshly-provisioned account:Users have to manually parse
~/hero/cfg/hero_cfg.tomlthemselves or add a snippet toconfig_user.nuto work around it.Location
tools/modules/installers/multiuser.nu:582–584, 616–617:Bash syntax, written to bash rc files, while the login shell is nu.
Proposed fix
Populate env vars from
~/hero/cfg/hero_cfg.tomlintools/hero_loader.nu, which is already sourced by the nuconfig.nugenerated byinstall.sh. Centrally maintained, no per-user duplication, kicks in automatically on every hero_skills update:Workaround for affected users
Add to
~/.config/nushell/config_user.nu:Impact
Low severity, high friction — every new user hits this on their first
service_router startand has to figure out the workaround.