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";
|
2023-10-10 17:14:57 +02:00
|
|
|
ipv6-space = pvv-ipv6 "/64";
|
2023-09-07 18:20:15 +02:00
|
|
|
|
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-11-04 21:28:09 +01:00
|
|
|
grevling-tap = {
|
|
|
|
ipv4 = pvv-ipv4 251;
|
|
|
|
};
|
|
|
|
tuba-tap = {
|
|
|
|
ipv4 = pvv-ipv4 252;
|
|
|
|
};
|
2023-01-17 10:27:18 +01:00
|
|
|
};
|
|
|
|
|
2023-01-21 19:51:10 +01:00
|
|
|
hosts = {
|
|
|
|
gateway = pvv-ipv4 129;
|
2024-09-28 21:28:26 +02:00
|
|
|
gateway6 = pvv-ipv6 1;
|
|
|
|
|
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 = {
|
2024-07-28 19:25:52 +02:00
|
|
|
ipv4 = "129.241.153.213";
|
|
|
|
ipv4_internal = "192.168.12.209";
|
|
|
|
ipv4_internal_gw = "192.168.12.1";
|
|
|
|
ipv6 = "2001:700:300:6026:f816:3eff:fe58:f1e8";
|
2023-01-21 19:51:10 +01:00
|
|
|
};
|
2023-01-22 02:18:21 +01:00
|
|
|
bicep = {
|
|
|
|
ipv4 = pvv-ipv4 209;
|
|
|
|
ipv6 = pvv-ipv6 209;
|
|
|
|
};
|
2023-11-05 03:12:35 +01:00
|
|
|
bob = {
|
|
|
|
ipv4 = "129.241.152.254";
|
|
|
|
# ipv6 = ;
|
|
|
|
};
|
2023-11-30 19:42:05 +01:00
|
|
|
knutsen = {
|
|
|
|
ipv4 = pvv-ipv4 191;
|
|
|
|
};
|
2023-09-08 02:10:40 +02:00
|
|
|
shark = {
|
|
|
|
ipv4 = pvv-ipv4 196;
|
|
|
|
ipv6 = pvv-ipv6 196;
|
|
|
|
};
|
2023-09-03 01:06:48 +02:00
|
|
|
brzeczyszczykiewicz = {
|
|
|
|
ipv4 = pvv-ipv4 205;
|
|
|
|
ipv6 = pvv-ipv6 "1:50"; # Wtf peder why
|
|
|
|
};
|
2023-09-17 01:41:59 +02:00
|
|
|
georg = {
|
|
|
|
ipv4 = pvv-ipv4 204;
|
|
|
|
ipv6 = pvv-ipv6 "1:4f"; # Wtf øystein og daniel why
|
|
|
|
};
|
2024-12-09 21:30:54 +01:00
|
|
|
ustetind = {
|
|
|
|
ipv4 = pvv-ipv4 234;
|
|
|
|
ipv6 = pvv-ipv6 234;
|
|
|
|
};
|
2023-11-04 21:28:09 +01:00
|
|
|
grevling = {
|
|
|
|
ipv4 = pvv-ipv4 198;
|
|
|
|
ipv6 = pvv-ipv6 198;
|
|
|
|
};
|
|
|
|
tuba = {
|
|
|
|
ipv4 = pvv-ipv4 199;
|
|
|
|
ipv6 = pvv-ipv6 199;
|
|
|
|
};
|
2023-01-17 10:27:18 +01:00
|
|
|
};
|
2023-03-03 22:28:26 +01:00
|
|
|
|
|
|
|
defaultNetworkConfig = {
|
2024-07-28 19:25:52 +02:00
|
|
|
dns = [ "129.241.0.200" "129.241.0.201" "2001:700:300:1900::200" "2001:700:300:1900::201" ];
|
2024-07-31 11:23:00 +02:00
|
|
|
domains = [ "pvv.ntnu.no" "pvv.org" ];
|
2024-09-28 21:28:26 +02:00
|
|
|
gateway = [ hosts.gateway hosts.gateway6 ];
|
2024-07-31 11:23:00 +02:00
|
|
|
|
|
|
|
networkConfig.IPv6AcceptRA = "no";
|
2024-07-28 19:25:52 +02:00
|
|
|
DHCP = "no";
|
2024-07-31 11:23:00 +02:00
|
|
|
};
|
2023-01-17 10:27:18 +01:00
|
|
|
}
|