Fix dropbear interface name

This commit is contained in:
Fabian Hauser 2020-09-26 16:08:25 +00:00
parent 88177ecbad
commit f3fc0372dc

View file

@ -1,7 +1,7 @@
{ config, pkgs, ... }:
{
# Note: This implementation currently only allows eth0 (first interface) with dhcp.
# Note: This implementation currently only allows eno1 (first interface) with dhcp.
boot.initrd.network = {
enable = true;
ssh = {
@ -19,10 +19,10 @@
'';
};
boot.kernelParams = [
"ip=10.1.2.2::10.1.2.1:255.255.255.0:montalin:eth0:none"
"ip=10.1.2.2::10.1.2.1:255.255.255.0:montalin:eno1:none"
]; # see https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt
boot.initrd.postMountCommands = ''
ip link set eth0 down
ip link set eno1 down
'';
}