11 lines
422 B
Nu
11 lines
422 B
Nu
# Shared guest-connection helpers.
|
|
# Depends on: lib/common.nu (vsock-ssh-args).
|
|
# Used by both vm/ and ctl/.
|
|
|
|
def guest-user [] { "hermes" }
|
|
def guest-host [] { $env.HERMES_GUEST_NAME? | default "hermes" }
|
|
def vsock-cid [] { ($env.HERMES_VSOCK_CID? | default "77") | into int }
|
|
|
|
# Full SSH argv for the guest, shared by `vm` and `ctl` subcommands.
|
|
def ssh-args [] { vsock-ssh-args (vsock-cid) (guest-user) (guest-host) }
|