fix(c4130): networkd config

This commit is contained in:
arcnmx 2024-11-25 11:43:26 -08:00
parent 24e1e217df
commit 95953eee32
3 changed files with 6 additions and 6 deletions

View file

@ -18,9 +18,9 @@ in {
inherit (config.systemd) network;
in mkIf config.networking.useNetworkd {
networks = {
eno1 = {
"10-eno1" = {
inherit (config.boot.initrd.systemd.network.links."10-eno1") matchConfig;
inherit (network.networks.eno1) address gateway DHCP networkConfig linkConfig;
inherit (network.networks."10-eno1") address gateway DHCP networkConfig linkConfig;
};
};
links."10-eno1" = {
@ -40,7 +40,7 @@ in {
inherit (config.systemd) network;
in {
networks = {
br = mkIf enableBridge {
"10-br" = mkIf enableBridge {
matchConfig.Name = "br";
DHCP = "no";
linkConfig = {
@ -52,7 +52,7 @@ in {
MulticastDNS = true;
};
};
eno2 = {
"10-eno2" = {
inherit (network.links."10-eno2") matchConfig;
bridge = mkIf enableBridge ["br"];
linkConfig = {

View file

@ -25,7 +25,7 @@
networking.useNetworkd = true;
systemd.network = {
networks.eno1 = {
networks."10-eno1" = {
inherit (config.systemd.network.links."10-eno1") matchConfig;
address = ["10.1.1.61/24"];
gateway = ["10.1.1.1"];

View file

@ -20,7 +20,7 @@
networking.useNetworkd = true;
systemd.network = {
networks.eno1 = {
networks."10-eno1" = {
inherit (config.systemd.network.links."10-eno1") matchConfig;
address = ["10.1.1.60/24"];
gateway = ["10.1.1.1"];