From 53668d06fa19d179d04d7205f7115b36ee724636 Mon Sep 17 00:00:00 2001 From: c6ristian Date: Thu, 9 Jan 2025 21:49:20 +0100 Subject: [PATCH] Audio VM's use dhcp to get ip addr --- config/hosts/audio-hauptraum-kueche/networking.nix | 13 +------------ config/hosts/audio-hauptraum-tafel/networking.nix | 13 +------------ 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/config/hosts/audio-hauptraum-kueche/networking.nix b/config/hosts/audio-hauptraum-kueche/networking.nix index 0118db4..532ca23 100644 --- a/config/hosts/audio-hauptraum-kueche/networking.nix +++ b/config/hosts/audio-hauptraum-kueche/networking.nix @@ -1,18 +1,7 @@ { ... }: { - networking = { - interfaces.net0 = { - ipv4.addresses = [ - { - address = "10.31.210.10"; - prefixLength = 23; - } - ]; - }; - defaultGateway = "10.31.210.1"; - nameservers = [ "10.31.210.1" ]; - }; + networking.interfaces.net0.useDHCP = true; systemd.network.links."10-net0" = { matchConfig.MACAddress = "1E:EF:2D:92:81:DA"; diff --git a/config/hosts/audio-hauptraum-tafel/networking.nix b/config/hosts/audio-hauptraum-tafel/networking.nix index 37185b7..adc8e64 100644 --- a/config/hosts/audio-hauptraum-tafel/networking.nix +++ b/config/hosts/audio-hauptraum-tafel/networking.nix @@ -1,18 +1,7 @@ { ... }: { - networking = { - interfaces.net0 = { - ipv4.addresses = [ - { - address = "10.31.210.13"; - prefixLength = 23; - } - ]; - }; - defaultGateway = "10.31.210.1"; - nameservers = [ "10.31.210.1" ]; - }; + networking.interfaces.net0.useDHCP = true; systemd.network.links."10-net0" = { matchConfig.MACAddress = "D2:10:33:B1:72:C3";