forked from pub-solar/os
Compare commits
2 commits
208853aeb9
...
3dcb4045f5
Author | SHA1 | Date | |
---|---|---|---|
teutat3s | 3dcb4045f5 | ||
teutat3s | e459fbb0b5 |
|
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue