diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-11-16 15:57:18 +0059 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-11-16 15:57:18 +0059 |
commit | 85ecd1a65123cce94e634dc41c342a1d02f43c06 (patch) | |
tree | c23d6ee73def2022ed5525de52685c65b1b0592a /hosts | |
parent | 82fc659fb977fe4858d6b47006267bd66e3caa8e (diff) | |
download | nixos-85ecd1a65123cce94e634dc41c342a1d02f43c06.tar nixos-85ecd1a65123cce94e634dc41c342a1d02f43c06.tar.gz nixos-85ecd1a65123cce94e634dc41c342a1d02f43c06.tar.bz2 nixos-85ecd1a65123cce94e634dc41c342a1d02f43c06.tar.xz nixos-85ecd1a65123cce94e634dc41c342a1d02f43c06.zip |
vidhar: network matchConfig
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/vidhar/default.nix | 10 |
1 files 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 @@ | |||
165 | "net.ipv4.conf.default.forwarding" = true; | 165 | "net.ipv4.conf.default.forwarding" = true; |
166 | }; | 166 | }; |
167 | systemd.network.networks = { | 167 | systemd.network.networks = { |
168 | "eno2".networkConfig.LinkLocalAddressing = "no"; | 168 | "eno2" = { |
169 | "telekom".networkConfig.LinkLocalAddressing = "no"; | 169 | matchConfig.Name = "eno2"; |
170 | networkConfig.LinkLocalAddressing = "no"; | ||
171 | }; | ||
172 | "telekom" = { | ||
173 | matchConfig.Name = "telekom"; | ||
174 | networkConfig.LinkLocalAddressing = "no"; | ||
175 | }; | ||
170 | }; | 176 | }; |
171 | systemd.services."dhcpcd-telekom" = { | 177 | systemd.services."dhcpcd-telekom" = { |
172 | wantedBy = [ "multi-user.target" "network-online.target" ]; | 178 | wantedBy = [ "multi-user.target" "network-online.target" ]; |