From 85ecd1a65123cce94e634dc41c342a1d02f43c06 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 16 Nov 2021 15:57:18 +0059 Subject: vidhar: network matchConfig --- hosts/vidhar/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix index d1955474..1d8f4c3c 100644 --- a/hosts/vidhar/default.nix +++ b/hosts/vidhar/default.nix @@ -165,8 +165,14 @@ "net.ipv4.conf.default.forwarding" = true; }; systemd.network.networks = { - "eno2".networkConfig.LinkLocalAddressing = "no"; - "telekom".networkConfig.LinkLocalAddressing = "no"; + "eno2" = { + matchConfig.Name = "eno2"; + networkConfig.LinkLocalAddressing = "no"; + }; + "telekom" = { + matchConfig.Name = "telekom"; + networkConfig.LinkLocalAddressing = "no"; + }; }; systemd.services."dhcpcd-telekom" = { wantedBy = [ "multi-user.target" "network-online.target" ]; -- cgit v1.2.3