diff --git a/machines/modules/malobeo/initssh.nix b/machines/modules/malobeo/initssh.nix index 84428ff..3733df0 100644 --- a/machines/modules/malobeo/initssh.nix +++ b/machines/modules/malobeo/initssh.nix @@ -46,11 +46,14 @@ in enable = true; network.enable = true; }; - network.ssh = { - enable = true; - port = 222; - authorizedKeys = cfg.authorizedKeys; - hostKeys = [ "/etc/ssh/initrd" ]; + network = { + flushBeforeStage2 = true; + ssh = { + enable = true; + port = 222; + authorizedKeys = cfg.authorizedKeys; + hostKeys = [ "/etc/ssh/initrd" ]; + }; }; secrets = { "/etc/ssh/initrd" = "/etc/ssh/initrd";