Dasha: Add network config.

This commit is contained in:
Dmitry Voronin 2024-11-28 22:08:16 +03:00
parent 0a1dfb0b84
commit 08c6cd650b
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -0,0 +1,20 @@
{ ... }: {
systemd.network = {
networks = {
"10-lan" = {
matchConfig.Name = "enp5s0";
linkConfig.RequiredForOnline = "routable";
networkConfig = {
DHCP = "ipv4";
IPv6AcceptRA = true;
};
address = [
"10.0.0.7/24"
];
routes = [
{ routeConfig.Gateway = "10.0.0.1"; }
];
};
};
};
}