Fix dropbear interface name
This commit is contained in:
parent
88177ecbad
commit
f3fc0372dc
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
{ config, pkgs, ... }:
|
{ 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 = {
|
boot.initrd.network = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ssh = {
|
ssh = {
|
||||||
|
@ -19,10 +19,10 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
boot.kernelParams = [
|
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
|
]; # see https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt
|
||||||
|
|
||||||
boot.initrd.postMountCommands = ''
|
boot.initrd.postMountCommands = ''
|
||||||
ip link set eth0 down
|
ip link set eno1 down
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue