Dasha: Add network config.
This commit is contained in:
parent
0a1dfb0b84
commit
08c6cd650b
20
host/x86_64-linux/dasha/Network.nix
Normal file
20
host/x86_64-linux/dasha/Network.nix
Normal 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"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue