profiles: init (vsock ssh &c.)
This commit is contained in:
parent
12e95630b1
commit
1828835a1d
8 changed files with 228 additions and 0 deletions
18
profiles/vsock-connect-guest.nix
Normal file
18
profiles/vsock-connect-guest.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ options, lib, ... }:
|
||||
{
|
||||
config =
|
||||
lib.optionalAttrs (options ? "microvm") {
|
||||
microvm.cloud-hypervisor.extraArgs = [
|
||||
"--vsock"
|
||||
"cid=4,socket=CONNECT.sock"
|
||||
];
|
||||
}
|
||||
// {
|
||||
# Somehow, sshd calls to PAM with PAM_RHOST="UNKNOWN",
|
||||
# prompting a slow DNS look-up each time...
|
||||
#
|
||||
# https://mastodon.acm.org/@nobody/115108458851355328
|
||||
# https://github.com/linux-pam/linux-pam/issues/885#issuecomment-3030698895
|
||||
networking.hosts."100::" = [ "UNKNOWN" ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue