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

14 lines
335 B
Nix
Raw Normal View History

2024-02-02 13:45:05 +01:00
{ config, inputs, ... }:
{
boot.initrd.network = {
enable = true;
ssh = {
enable = true;
port = 22;
shell = "/bin/cryptsetup-askpass";
2024-02-02 13:45:05 +01:00
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" ];
};
};
}