-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobals.nix
executable file
·146 lines (136 loc) · 3.48 KB
/
globals.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{config, ...}
: let
inherit (config) globals;
in {
globals = {
domains.me = "czichy.com";
domains.local = "czichy.com";
net = {
# #VLAN1
# home-wan = {
# cidrv4 = "10.15.1.0/24";
# # OPNSense
# hosts.HL-3-MRZ-FW-01.id = 99;
# hosts.HL-1-MRZ-HOST-02.id = 254;
# hosts.HL-1-OZ-PC-01.id = 62;
# };
#TRUST
vlan10 = {
cidrv4 = "10.15.10.0/24";
# OPNSense
hosts.HL-3-MRZ-FW-01.id = 99;
# cidrv6 = "fd10::/64";
hosts.HL-1-OZ-PC-01.id = 62;
hosts.HL-1-MRZ-HOST-02.id = 254;
};
#GUEST
vlan20 = {
cidrv4 = "10.15.20.0/24";
# cidrv6 = "fd10::/64";
hosts.HL-1-OZ-PC-01.id = 62;
hosts.HL-1-MRZ-HOST-02.id = 254;
};
#Security
vlan30 = {
cidrv4 = "10.15.30.0/24";
# cidrv6 = "fd10::/64";
hosts.HL-1-OZ-PC-01.id = 62;
hosts.HL-1-MRZ-HOST-02.id = 254;
};
#Server
vlan40 = {
cidrv4 = "10.15.40.0/24";
# cidrv6 = "fd10::/64";
# OPNSense
hosts.HL-3-MRZ-FW-01.id = 99;
# |------------------------------------| #
hosts.HL-1-OZ-PC-01.id = 62;
# |------------------------------------| #
hosts.HL-1-MRZ-HOST-01.id = 10;
# Samba
hosts.HL-3-RZ-SMB-01.id = 11;
# InfluxDb
hosts.HL-3-RZ-INFLUX-01.id = 12;
# Syncthing
hosts.HL-3-RZ-SYNC-01.id = 13;
# Forgejo
hosts.HL-3-RZ-GIT-01.id = 14;
# IBKR Flex Downloader
hosts.HL-3-RZ-IBKR-01.id = 15;
# |------------------------------------| #
hosts.HL-1-MRZ-HOST-02.id = 20;
# AdguardHome
hosts.HL-3-RZ-DNS-01.id = 21;
# Vaultwarden
hosts.HL-3-RZ-VAULT-01.id = 22;
# |------------------------------------| #
# Unifi Controller
hosts.HL-3-RZ-UNIFI-01.id = 31;
# Minecraft Server
hosts.HL-3-RZ-MC-01.id = 32;
# Mosquitto
hosts.HL-3-RZ-MQTT-01.id = 33;
# Power Meter
hosts.HL-3-RZ-POWER-02.id = 34;
# node-red
hosts.HL-3-RZ-RED-01.id = 35;
};
#IoT
vlan60 = {
cidrv4 = "10.15.60.0/24";
};
#DMZ
vlan70 = {
cidrv4 = "10.15.70.0/24";
# OPNSense
hosts.HL-3-MRZ-FW-01.id = 99;
# Caddy
hosts.HL-3-DMZ-PROXY-01.id = 1;
};
#Management
vlan100 = {
cidrv4 = "10.15.100.0/24";
# OPNSense
hosts.HL-1-MRZ-HOST-01.id = 10;
hosts.HL-1-MRZ-HOST-02.id = 20;
hosts.HL-1-MRZ-HOST-03.id = 30;
hosts.HL-1-OZ-PC-01.id = 62;
hosts.HL-3-MRZ-FW-01.id = 99;
};
proxy-vps = {
cidrv4 = "10.46.0.0/24";
cidrv6 = "fd00:44::/120";
# Caddy local
hosts.HL-3-DMZ-PROXY-01.id = 1;
# VPS
hosts.HL-4-PAZ-PROXY-01.id = 90;
};
};
monitoring = {
dns = {
cloudflare = {
server = "1.1.1.1";
domain = ".";
network = "internet";
};
google = {
server = "8.8.8.8";
domain = ".";
network = "internet";
};
};
ping = {
cloudflare = {
hostv4 = "1.1.1.1";
hostv6 = "2606:4700:4700::1111";
network = "internet";
};
google = {
hostv4 = "8.8.8.8";
hostv6 = "2001:4860:4860::8888";
network = "internet";
};
};
};
};
}