nixos/ec2-data: sshd.service -> sshd-keygen.service (#444040)

authored by Arian van Putten and committed by GitHub 0f3383ef 3c2e6c1d

+3 -3
+3 -3
nixos/modules/virtualisation/ec2-data.nix
··· 23 23 24 24 wantedBy = [ 25 25 "multi-user.target" 26 - "sshd.service" 26 + "sshd-keygen.service" 27 27 ]; 28 - before = [ "sshd.service" ]; 28 + before = [ "sshd-keygen.service" ]; 29 29 after = [ "fetch-ec2-metadata.service" ]; 30 30 31 31 path = [ pkgs.iproute2 ]; ··· 80 80 systemd.services.print-host-key = { 81 81 description = "Print SSH Host Key"; 82 82 wantedBy = [ "multi-user.target" ]; 83 - after = [ "sshd.service" ]; 83 + after = [ "sshd-keygen.service" ]; 84 84 script = '' 85 85 # Print the host public key on the console so that the user 86 86 # can obtain it securely by parsing the output of