37 lines
589 B
Nix
37 lines
589 B
Nix
|
{ config, ... }:
|
||
|
|
||
|
let
|
||
|
inherit (config) my;
|
||
|
in
|
||
|
|
||
|
{
|
||
|
networking.useNetworkd = true;
|
||
|
|
||
|
systemd.network.networks = {
|
||
|
"10-ens18" = {
|
||
|
name = "ens18";
|
||
|
address = my.ipv4Full;
|
||
|
DHCP = "ipv4";
|
||
|
};
|
||
|
|
||
|
"10-ens19" = {
|
||
|
name = "ens19";
|
||
|
address = with my.ipv6; standardFull ++ [ acmeFull ];
|
||
|
|
||
|
networkConfig.IPv6AcceptRA = true;
|
||
|
|
||
|
ipv6AcceptRAConfig = {
|
||
|
UseOnLinkPrefix = false;
|
||
|
UseAutonomousPrefix = false;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
"10-ens20" = {
|
||
|
name = "ens20";
|
||
|
address = my.ipv4InternalFull;
|
||
|
|
||
|
DHCP = "ipv4";
|
||
|
};
|
||
|
};
|
||
|
}
|