2023-12-04 17:42:06 +01:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
2024-01-12 18:07:38 +01:00
|
|
|
imports = [
|
|
|
|
./wireguard.nix
|
|
|
|
];
|
2023-12-04 17:42:06 +01:00
|
|
|
networking.useDHCP = false;
|
2023-12-19 13:34:37 +01:00
|
|
|
systemd.network = {
|
|
|
|
enable = true;
|
2024-01-12 18:07:38 +01:00
|
|
|
netdevs."10-sit-he" = {
|
|
|
|
netdevConfig = {
|
|
|
|
Kind = "sit";
|
|
|
|
Name = "sit-he";
|
|
|
|
};
|
|
|
|
tunnelConfig = {
|
|
|
|
Local = "129.199.129.76";
|
|
|
|
Remote = "216.66.84.42";
|
|
|
|
};
|
|
|
|
};
|
2023-12-19 13:34:37 +01:00
|
|
|
networks = {
|
|
|
|
"10-uplink" = {
|
|
|
|
name = "eth0";
|
|
|
|
DHCP = "no";
|
|
|
|
address = [
|
|
|
|
"129.199.129.76/24"
|
|
|
|
];
|
|
|
|
networkConfig = {
|
|
|
|
Gateway = "129.199.129.1";
|
2024-01-12 18:07:38 +01:00
|
|
|
Tunnel = [ "sit-he" ];
|
2023-12-19 13:34:37 +01:00
|
|
|
};
|
|
|
|
};
|
2024-01-12 18:07:38 +01:00
|
|
|
"10-tun-he" = {
|
|
|
|
matchConfig.Name = "sit-he";
|
|
|
|
networkConfig = {
|
|
|
|
Gateway = [ "2001:470:1f12:d21::1" ];
|
|
|
|
Description = "HE.NET IPv6 Tunnel (owned by maurice)";
|
|
|
|
Address = [ "2001:470:1f12:d21::2/64" ];
|
|
|
|
};
|
|
|
|
};
|
2023-12-19 13:34:37 +01:00
|
|
|
};
|
2023-12-04 17:42:06 +01:00
|
|
|
};
|
|
|
|
networking.nameservers = [ "1.1.1.1" "8.8.8.8" ];
|
|
|
|
}
|