modules.system.networking: fix dns

This commit is contained in:
陈浩南 2024-09-19 23:41:44 +08:00
parent 141e5e99f9
commit 7d01d1688c

View File

@ -95,6 +95,7 @@ inputs:
routes = inputs.lib.mkIf (network.value.gateway != null)
[{ Gateway = network.value.gateway; Destination = "0.0.0.0/0"; }];
linkConfig.RequiredForOnline = "routable";
dns = inputs.lib.mkIf (network.value.dns != null) [ network.value.dns ];
};
})
(inputs.localLib.attrsToList networking.networkd.static))