Compare commits

...

2 commits

View file

@ -29,11 +29,12 @@ in {
boot.binfmt.emulatedSystems = ["aarch64-linux"]; boot.binfmt.emulatedSystems = ["aarch64-linux"];
# Required for WakeOnLan # Required for WakeOnLan
boot.kernelParams = [ "ip=dhcp" ];
boot.initrd = { boot.initrd = {
availableKernelModules = [ "r8169" ]; availableKernelModules = [ "r8169" ];
network = { network = {
enable = true; enable = true;
udhcpc.enable = true;
flushBeforeStage2 = true;
ssh = { ssh = {
enable = true; enable = true;
# To prevent ssh clients from freaking out because a different host key is used, # To prevent ssh clients from freaking out because a different host key is used,
@ -47,7 +48,8 @@ in {
}; };
postCommands = '' postCommands = ''
# Automatically ask for the password on SSH login # 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
''; '';
}; };
}; };