nixos/modules/misc/initrd-ssh/default.nix

14 lines
343 B
Nix
Raw Normal View History

{ config, inputs, ... }: {
boot.initrd.network = {
enable = true;
ssh = {
enable = true;
port = 22;
shell = "/bin/cryptsetup-askpass";
authorizedKeys =
config.users.users.${config.az-username}.openssh.authorizedKeys.keys;
2024-01-29 13:39:27 +01:00
hostKeys = [ "/etc/secrets/initrd/ssh_host_ed25519_key" ];
};
};
}