networkdecrypt: rely on local ssh-key for now

This commit is contained in:
Felix Buehler 2022-12-05 20:16:31 +01:00
parent e7b6c789dc
commit 2751c13183

View file

@ -1,8 +1,6 @@
{ pkgs, config, ... }: { pkgs, config, ... }:
{ {
sops.secrets.initrd_ssh_key = { };
boot.initrd.network = { boot.initrd.network = {
enable = true; enable = true;
@ -10,7 +8,7 @@
enable = true; enable = true;
port = 2222; port = 2222;
hostKeys = [ hostKeys = [
config.sops.secrets.initrd_ssh_key.path "/etc/secrets/initrd/ssh_host_ed25519_key"
]; ];
authorizedKeys = [ authorizedKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOFx6OLwL9MbkD3mnMsv+xrzZHN/rwCTgVs758SCLG0h felix@thinkman" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOFx6OLwL9MbkD3mnMsv+xrzZHN/rwCTgVs758SCLG0h felix@thinkman"