Compare commits

...

2 commits

View file

@ -29,11 +29,12 @@ in {
boot.binfmt.emulatedSystems = ["aarch64-linux"];
# Required for WakeOnLan
boot.kernelParams = [ "ip=dhcp" ];
boot.initrd = {
availableKernelModules = [ "r8169" ];
network = {
enable = true;
udhcpc.enable = true;
flushBeforeStage2 = true;
ssh = {
enable = true;
# To prevent ssh clients from freaking out because a different host key is used,
@ -47,7 +48,8 @@ in {
};
postCommands = ''
# Automatically ask for the password on SSH login
echo 'cryptsetup-askpass || echo "Unlock was successful; exiting SSH session" && exit 1' >> /root/.profile
echo 'cryptsetup-askpass || echo "Unlock was successful; exiting SSH session" && exit 1' \
| tee /root/.profile
'';
};
};