service/initrd-ssh: init from legacy

This commit is contained in:
Felix Buehler 2023-02-15 21:17:09 +01:00
parent 07da2f1b58
commit 460f9b2aa8
5 changed files with 36 additions and 26 deletions

View file

@ -1,22 +0,0 @@
{ pkgs, config, ... }:
{
boot.initrd.network = {
enable = true;
ssh = {
enable = true;
port = 2222;
hostKeys = [
"/etc/secrets/initrd/ssh_host_ed25519_key"
];
authorizedKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOFx6OLwL9MbkD3mnMsv+xrzZHN/rwCTgVs758SCLG0h felix@thinkman"
];
};
postCommands = ''
echo 'cryptsetup-askpass' >> /root/.profile
'';
};
}