20 lines
561 B
Nix
20 lines
561 B
Nix
|
{ ... }: {
|
||
|
# boot.kernelParams = [ "ip=dhcp" ];
|
||
|
boot.initrd = {
|
||
|
availableKernelModules = [ "r8169" ];
|
||
|
network = {
|
||
|
enable = true;
|
||
|
udhcpc.enable = true;
|
||
|
ssh = {
|
||
|
enable = true;
|
||
|
port = 22;
|
||
|
authorizedKeys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDEDqpSiQpbSsClh6UGb7Z2DA1Hy+EyePzTy+5hEVD/A" ];
|
||
|
hostKeys = [ "/nix/keys/identity" ];
|
||
|
};
|
||
|
postCommands = ''
|
||
|
echo 'cryptsetup-askpass || echo "Unlock was successful; exiting SSH session" && exit 1' >> /root/.profile
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
}
|