blob: ea211ad7f6ba7fb4845933ac383753f91280db31 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
{ ... }:
{
boot.kernelParams = [
"ip=dhcp"
];
boot.initrd.network = {
enable = true;
postCommands = "echo 'cryptsetup-askpass' >> /root/.profile";
flushBeforeStage2 = true;
ssh = {
enable = true;
port = 911;
hostKeys = [
"/etc/initrd/ssh_host_ed25519_key"
];
authorizedKeys = [
# my personal key
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINBkozy+X96u5ciX766bJ/AyQ3xm1tXZTIr5+4PVFZFi"
# key used to automatically unlock
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPr9Dv2MjZoRltmxi21PoS/42KnOhYxuq9r6ER62vjAx"
];
};
};
}
|