initrd: take publicKeys from flake config
This commit is contained in:
parent
5c13335a52
commit
f3804d23cc
|
@ -29,7 +29,7 @@ in {
|
|||
ssh = {
|
||||
enable = true;
|
||||
port = 2222;
|
||||
authorizedKeys = psCfg.user.publicKeys;
|
||||
authorizedKeys = flake.self.publicKeys;
|
||||
hostKeys = ["/persist/etc/secrets/initrd/ssh_host_ed25519_key"];
|
||||
shell = "/bin/cryptsetup-askpass";
|
||||
};
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
|
@ -25,7 +26,7 @@ in {
|
|||
enable = true;
|
||||
port = 2222;
|
||||
hostKeys = [ /boot/initrd-ssh-key ];
|
||||
authorizedKeys = psCfg.user.publicKeys;
|
||||
authorizedKeys = flake.self.publicKeys;
|
||||
shell = "/bin/cryptsetup-askpass";
|
||||
};
|
||||
postCommands = ''
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
|
@ -34,7 +35,7 @@ in {
|
|||
ssh = {
|
||||
enable = true;
|
||||
port = 2222;
|
||||
authorizedKeys = psCfg.user.publicKeys;
|
||||
authorizedKeys = flake.self.publicKeys;
|
||||
hostKeys = ["/etc/secrets/initrd/ssh_host_ed25519_key"];
|
||||
shell = "/bin/cryptsetup-askpass";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue