stockholm/tv/2configs/initrd/sshd.nix

18 lines
386 B
Nix
Raw Normal View History

2023-09-05 09:30:39 +00:00
{ config, ... }: {
boot.initrd.availableKernelModules = [
"e1000e"
];
boot.initrd.network.enable = true;
boot.initrd.network.ssh = {
enable = true;
port = 11423;
authorizedKeys = [
config.krebs.users.tv.pubkey
];
ignoreEmptyHostKeys = true;
};
boot.initrd.secrets = {
"/etc/ssh/ssh_host_rsa_key" = <secrets/initrd/ssh_host_rsa_key>;
};
}