From d8cc6ab61c925ba7361b1b4ae09437aa49279b05 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Sun, 7 May 2023 22:52:09 +0100 Subject: [PATCH] eth1 is lan in qemu --- vanilla-configuration.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vanilla-configuration.nix b/vanilla-configuration.nix index 1b88f63..6db1f17 100644 --- a/vanilla-configuration.nix +++ b/vanilla-configuration.nix @@ -10,17 +10,17 @@ in rec { services.loopback = config.hardware.networkInterfaces.lo; services.dhcpv4 = - let iface = interface { type = "hardware"; device = "eth0"; }; + let iface = interface { type = "hardware"; device = "eth1"; }; in udhcpc iface {}; services.dhcpv6 = - let iface = interface { type = "hardware"; device = "eth0"; }; + let iface = interface { type = "hardware"; device = "eth1"; }; in odhcpc iface { uid = "e7"; }; services.ntp = longrun { name = "ntp"; run = let inherit (services) dhcpv4 dhcpv6; - in "${pkgs.ntp}/bin/ntpd $(output ${dhcpv4} ntp_servers) $(output ${dhcpv6} NTP_IP})"; + in "${pkgs.ntp}/bin/ntpd $(output ${dhcpv4} ntp_servers) $(output ${dhcpv6} NTP_IP)"; # I don't think it's possible to standardise the file names # generally, as different services have different outputs, but it