2024-12-08 16:34:34 +08:00
|
|
|
{
|
|
|
|
profiles,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2024-11-28 01:14:34 +08:00
|
|
|
{
|
|
|
|
imports = with profiles; [
|
2024-12-08 18:55:05 +08:00
|
|
|
services.enthalpy.customer-dualstack
|
|
|
|
services.enthalpy.fw-proxy
|
2024-11-28 01:14:34 +08:00
|
|
|
];
|
|
|
|
|
|
|
|
services.enthalpy = {
|
2025-01-20 21:37:57 +08:00
|
|
|
ipsec.interfaces = [
|
|
|
|
"eno1"
|
|
|
|
"wlan0"
|
|
|
|
];
|
2024-12-13 14:30:29 +08:00
|
|
|
clat.segment = lib.singleton "fde3:3be3:a244:f876::2";
|
2024-12-08 16:34:34 +08:00
|
|
|
};
|
|
|
|
|
2024-11-28 01:14:34 +08:00
|
|
|
systemd.network = {
|
|
|
|
enable = true;
|
|
|
|
wait-online.anyInterface = true;
|
|
|
|
networks = {
|
|
|
|
"30-enp3s0" = {
|
|
|
|
matchConfig.Name = "enp3s0";
|
|
|
|
networkConfig = {
|
|
|
|
DHCP = "yes";
|
|
|
|
IPv6AcceptRA = true;
|
|
|
|
IPv6PrivacyExtensions = true;
|
|
|
|
};
|
|
|
|
dhcpV4Config.RouteMetric = 1024;
|
|
|
|
dhcpV6Config.RouteMetric = 1024;
|
|
|
|
ipv6AcceptRAConfig.RouteMetric = 1024;
|
|
|
|
};
|
|
|
|
"40-wlan0" = {
|
|
|
|
matchConfig.Name = "wlan0";
|
|
|
|
networkConfig = {
|
|
|
|
DHCP = "yes";
|
|
|
|
IPv6AcceptRA = true;
|
|
|
|
IPv6PrivacyExtensions = true;
|
|
|
|
};
|
|
|
|
dhcpV4Config.RouteMetric = 2048;
|
|
|
|
dhcpV6Config.RouteMetric = 2048;
|
|
|
|
ipv6AcceptRAConfig.RouteMetric = 2048;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|