2024-12-05 09:57:42 +01:00
|
|
|
let
|
|
|
|
mkRoutexp =
|
|
|
|
l:
|
|
|
|
builtins.listToAttrs (
|
|
|
|
builtins.map (
|
|
|
|
{ id, hostId, ... }:
|
|
|
|
{
|
|
|
|
name = "routexp${id}";
|
|
|
|
value = {
|
|
|
|
interfaces = {
|
|
|
|
ens18 = {
|
|
|
|
ipv6 = [
|
|
|
|
{
|
|
|
|
address = "2a0e:e701:1120:1000::1000:${id}";
|
|
|
|
prefixLength = 64;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
gateways = [ "2a0e:e701:1120:1000::1" ];
|
|
|
|
dns = [ "2a0e:e701:1120:1000::f:1" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
inherit hostId;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
) l
|
|
|
|
);
|
|
|
|
in
|
2024-10-12 00:20:58 +02:00
|
|
|
{
|
2024-12-05 09:57:42 +01:00
|
|
|
|
2024-11-22 21:32:35 +01:00
|
|
|
dns01 = {
|
2024-12-04 18:07:34 +01:00
|
|
|
interfaces = {
|
|
|
|
ens18 = {
|
2024-12-05 09:39:28 +01:00
|
|
|
ipv6 = [
|
2024-12-04 18:07:34 +01:00
|
|
|
{
|
2024-12-05 09:39:28 +01:00
|
|
|
address = "2a0e:e701:1120:1000:ffff::45.13.104.26";
|
|
|
|
prefixLength = 64;
|
2024-12-04 18:07:34 +01:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2024-12-07 14:44:37 +01:00
|
|
|
ipv4 = [
|
|
|
|
{
|
|
|
|
address = "45.13.104.26";
|
|
|
|
prefixLength = 32;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2024-12-05 09:39:28 +01:00
|
|
|
gateways = [ "2a0e:e701:1120:1000::1" ];
|
|
|
|
dns = [ "2a0e:e701:1120:1000::f:1" ];
|
2024-12-04 18:07:34 +01:00
|
|
|
};
|
|
|
|
};
|
2024-11-22 21:32:35 +01:00
|
|
|
|
|
|
|
hostId = "1758233d";
|
|
|
|
};
|
2024-12-06 14:29:26 +01:00
|
|
|
homebox01 = {
|
|
|
|
interfaces = {
|
|
|
|
ens18 = {
|
|
|
|
ipv4 = [
|
|
|
|
{
|
|
|
|
address = "129.199.146.102";
|
|
|
|
prefixLength = 24;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
gateways = [ "129.199.146.254" ];
|
|
|
|
enableDefaultDNS = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
hostId = "ef3bd5c0";
|
|
|
|
};
|
2024-10-12 00:20:58 +02:00
|
|
|
krz01 = {
|
|
|
|
interfaces = {
|
2024-10-18 09:27:24 +02:00
|
|
|
vmbr0 = {
|
2024-10-12 00:20:58 +02:00
|
|
|
ipv4 = [
|
|
|
|
{
|
|
|
|
address = "129.199.146.21";
|
|
|
|
prefixLength = 24;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
address = "192.168.1.145";
|
|
|
|
prefixLength = 24;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
gateways = [ "129.199.146.254" ];
|
|
|
|
enableDefaultDNS = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
hostId = "bd11e8fc";
|
|
|
|
netbirdIp = "100.80.103.206";
|
|
|
|
};
|
2024-12-05 09:57:42 +01:00
|
|
|
|
2024-11-02 02:14:38 +01:00
|
|
|
labcore01 = {
|
|
|
|
interfaces = {
|
|
|
|
ens18 = {
|
|
|
|
ipv6 = [
|
|
|
|
{
|
|
|
|
address = "2a0e:e701:1120:1000::f:1";
|
|
|
|
prefixLength = 64;
|
|
|
|
}
|
|
|
|
{
|
2024-11-07 13:35:57 +01:00
|
|
|
address = "2a0e:e701:1120:1000:ffff::45.13.104.25";
|
2024-11-02 02:14:38 +01:00
|
|
|
prefixLength = 64;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
gateways = [ "2a0e:e701:1120:1000::1" ];
|
|
|
|
dns = [ "2a0e:e701:1120:1000::f:1" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
hostId = "4a370ef4";
|
|
|
|
};
|
2024-10-18 11:05:12 +02:00
|
|
|
router02 = {
|
|
|
|
interfaces = { };
|
|
|
|
|
2024-10-18 13:34:52 +02:00
|
|
|
addresses.ipv4 = [ "129.199.146.230" ];
|
2024-10-18 11:05:12 +02:00
|
|
|
|
2024-12-05 09:59:59 +01:00
|
|
|
vpnKeys = {
|
|
|
|
wg-mgmt = {
|
|
|
|
id = 1;
|
|
|
|
key = "PN8/zo1Clue7jAnkvaUOg1ZdmcXmcTb6kIRpu5cplHs=";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-10-18 11:05:12 +02:00
|
|
|
hostId = "144d0f7a";
|
|
|
|
};
|
2024-11-22 14:04:37 +01:00
|
|
|
photo01 = {
|
|
|
|
interfaces = { };
|
|
|
|
|
|
|
|
addresses.ipv4 = [ "129.199.146.101" ];
|
|
|
|
|
|
|
|
hostId = "bcf8ff03";
|
|
|
|
};
|
2024-12-07 16:26:03 +01:00
|
|
|
status01 = {
|
|
|
|
interfaces = {
|
|
|
|
ens18 = {
|
|
|
|
ipv4 = [
|
|
|
|
{
|
|
|
|
address = "129.199.146.103";
|
|
|
|
prefixLength = 24;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
gateways = [ "129.199.146.254" ];
|
|
|
|
enableDefaultDNS = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
hostId = "7ce86f3d";
|
|
|
|
};
|
2024-12-05 09:59:59 +01:00
|
|
|
roam01 = {
|
|
|
|
interfaces = { };
|
|
|
|
|
|
|
|
vpnKeys = {
|
|
|
|
wg-mgmt = {
|
|
|
|
id = 2;
|
|
|
|
key = "Yg1GwHbJ7kwNbnjxI+5LtgDvzMPMiOm3EgI/saLI7FU=";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
hostId = "999dc679";
|
|
|
|
};
|
2024-10-12 00:20:58 +02:00
|
|
|
}
|
2024-12-05 09:57:42 +01:00
|
|
|
// mkRoutexp (import ./routexp.nix)
|