profiles: init (vsock ssh &c.)

This commit is contained in:
Else, Someone 2025-09-17 16:51:24 +03:00
parent 12e95630b1
commit 1828835a1d
8 changed files with 228 additions and 0 deletions

View 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" ];
};
}