Desktop: Add network config.

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

View file

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