2023-01-17 10:27:18 +01:00
|
|
|
# Feel free to change the structure of this file
|
2023-01-21 19:51:10 +01:00
|
|
|
let
|
|
|
|
pvv-ipv4 = suffix: "129.241.210.${toString suffix}";
|
|
|
|
pvv-ipv6 = suffix: "2001:700:300:1900::${toString suffix}";
|
|
|
|
in rec {
|
2023-09-07 18:20:15 +02:00
|
|
|
ipv4-space = pvv-ipv4 "128/25";
|
|
|
|
ipv6-space = pvv-ipv4 "/64";
|
|
|
|
|
2023-01-21 19:51:10 +01:00
|
|
|
services = {
|
|
|
|
matrix = {
|
2023-05-18 17:14:24 +02:00
|
|
|
inherit (hosts.bicep) ipv4 ipv6;
|
|
|
|
};
|
|
|
|
postgres = {
|
|
|
|
inherit (hosts.bicep) ipv4 ipv6;
|
2023-01-21 19:51:10 +01:00
|
|
|
};
|
2023-07-09 23:45:32 +02:00
|
|
|
mysql = {
|
|
|
|
inherit (hosts.bicep) ipv4 ipv6;
|
|
|
|
};
|
2023-05-23 04:26:36 +02:00
|
|
|
# Also on bicep
|
2023-01-21 19:51:10 +01:00
|
|
|
turn = {
|
|
|
|
ipv4 = pvv-ipv4 213;
|
|
|
|
ipv6 = pvv-ipv6 213;
|
|
|
|
};
|
2023-01-17 10:27:18 +01:00
|
|
|
};
|
|
|
|
|
2023-01-21 19:51:10 +01:00
|
|
|
hosts = {
|
|
|
|
gateway = pvv-ipv4 129;
|
2023-01-29 01:51:35 +01:00
|
|
|
bekkalokk = {
|
|
|
|
ipv4 = pvv-ipv4 168;
|
|
|
|
ipv6 = pvv-ipv6 168;
|
|
|
|
};
|
2023-01-21 19:51:10 +01:00
|
|
|
ildkule = {
|
|
|
|
ipv4 = pvv-ipv4 187;
|
|
|
|
ipv6 = pvv-ipv6 "1:187";
|
|
|
|
};
|
2023-01-22 02:18:21 +01:00
|
|
|
bicep = {
|
|
|
|
ipv4 = pvv-ipv4 209;
|
|
|
|
ipv6 = pvv-ipv6 209;
|
|
|
|
};
|
2023-09-08 02:10:40 +02:00
|
|
|
shark = {
|
|
|
|
ipv4 = pvv-ipv4 196;
|
|
|
|
ipv6 = pvv-ipv6 196;
|
|
|
|
};
|
2023-01-17 10:27:18 +01:00
|
|
|
};
|
2023-03-03 22:28:26 +01:00
|
|
|
|
|
|
|
defaultNetworkConfig = {
|
|
|
|
networkConfig.IPv6AcceptRA = "no";
|
|
|
|
gateway = [ hosts.gateway ];
|
|
|
|
dns = [ "129.241.0.200" "129.241.0.201" ];
|
|
|
|
domains = [ "pvv.ntnu.no" "pvv.org" ];
|
|
|
|
DHCP = "no";
|
|
|
|
};
|
|
|
|
|
2023-01-17 10:27:18 +01:00
|
|
|
}
|