forked from fabian/nix_config
79 lines
1.1 KiB
Nix
79 lines
1.1 KiB
Nix
|
{
|
||
|
config,
|
||
|
pkgs,
|
||
|
lib,
|
||
|
flakes,
|
||
|
...
|
||
|
}:
|
||
|
with lib; {
|
||
|
local.sys.nets = {
|
||
|
default = {
|
||
|
v4 = {
|
||
|
bits = 32;
|
||
|
prefix = "37.205.12.34";
|
||
|
};
|
||
|
|
||
|
v6 = {
|
||
|
bits = 64;
|
||
|
prefix = "2a03:3b40:fe:102";
|
||
|
};
|
||
|
|
||
|
hosts = {
|
||
|
vps.v6.suffix = "1";
|
||
|
vps.v4.suffix = "";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
vpn = {
|
||
|
v6 = {
|
||
|
bits = 48;
|
||
|
prefix = "2a03:3b40:2b";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
vpn-vps = {
|
||
|
v6 = {
|
||
|
bits = 64;
|
||
|
prefix = "2a03:3b40:2b:1000";
|
||
|
};
|
||
|
|
||
|
hosts = {
|
||
|
vps.v6.suffix = "1";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
vpn-posixlycorrect = {
|
||
|
v6 = {
|
||
|
bits = 64;
|
||
|
prefix = "2a03:3b40:2b:1001";
|
||
|
};
|
||
|
|
||
|
hosts = {
|
||
|
posixlycorrect.v6.suffix = "1";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
vpn-pixel8 = {
|
||
|
v6 = {
|
||
|
bits = 64;
|
||
|
prefix = "2a03:3b40:2b:1002";
|
||
|
};
|
||
|
|
||
|
hosts = {
|
||
|
pixel8.v6.suffix = "1";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
vpn-t14 = {
|
||
|
v6 = {
|
||
|
bits = 64;
|
||
|
prefix = "2a03:3b40:2b:1003";
|
||
|
};
|
||
|
|
||
|
hosts = {
|
||
|
t14.v6.suffix = "1";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|