summary refs log tree commit diff
path: root/nixos/tests/initrd-network-ssh/generate-keys.nix
blob: 3d7978890ab08a86e34aa2a55fa885eadf6515b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
with import ../../.. {};

runCommand "gen-keys" {
    buildInputs = [ openssh ];
  }
  ''
    mkdir $out
    ssh-keygen -q -t ed25519 -N "" -f $out/ssh_host_ed25519_key
    ssh-keygen -q -t ed25519 -N "" -f $out/id_ed25519
  ''