fix initrd ssh

This commit is contained in:
2024-07-04 11:02:47 +08:00
parent ca299e0346
commit 9b5ccd0747

View File

@@ -26,7 +26,12 @@ inputs:
{
boot =
{
initrd.network = { enable = true; ssh = { enable = true; hostKeys = initrd.sshd.hostKeys; }; };
initrd =
{
network = { enable = true; ssh = { enable = true; hostKeys = initrd.sshd.hostKeys; }; };
# resolved does not work in initrd, causing network.target to fail
services.resolved.enable = false;
};
kernelParams = [ "ip=dhcp" ];
};
}