From f3fc0372dca05d58415d6643b03cb112273c4d89 Mon Sep 17 00:00:00 2001 From: Fabian Date: Sat, 26 Sep 2020 16:08:25 +0000 Subject: [PATCH] Fix dropbear interface name --- role/dropbear/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/role/dropbear/default.nix b/role/dropbear/default.nix index 75e9845..3699674 100644 --- a/role/dropbear/default.nix +++ b/role/dropbear/default.nix @@ -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 ''; }