summaryrefslogtreecommitdiff
path: root/hosts/poweredge/router-hosts.nix
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-06-13 14:14:46 -0500
committerTim Keller <tjk@tjkeller.xyz>2026-06-13 14:14:46 -0500
commit3ba8be0f8621b695d9b1cbe432f29512e5ce1fb1 (patch)
treedc8a7d9fedea4a017a7fbf0bc7fe9428dafe3a2b /hosts/poweredge/router-hosts.nix
parent50427e193d2d125db35183c8cdc3f2ea50cf449a (diff)
downloadnixos-3ba8be0f8621b695d9b1cbe432f29512e5ce1fb1.tar.xz
nixos-3ba8be0f8621b695d9b1cbe432f29512e5ce1fb1.zip
containerized router and networking services and update poweredge config
Diffstat (limited to 'hosts/poweredge/router-hosts.nix')
-rw-r--r--hosts/poweredge/router-hosts.nix71
1 files changed, 71 insertions, 0 deletions
diff --git a/hosts/poweredge/router-hosts.nix b/hosts/poweredge/router-hosts.nix
new file mode 100644
index 0000000..007d2d7
--- /dev/null
+++ b/hosts/poweredge/router-hosts.nix
@@ -0,0 +1,71 @@
+let
+ localDomain = "home.lan";
+ dhcp = {
+ inherit staticLeases;
+ defaultGateway = "192.168.1.1";
+ localhostIp = "192.168.1.1";
+ rangeStart = "192.168.1.50";
+ rangeEnd = "192.168.1.250";
+ };
+ staticLeases = {
+ # Network
+ idrac-7N94GK2 = {
+ macAddress = "50:9a:4c:5d:c3:7c";
+ staticIp = "192.168.1.2";
+ };
+ OpenWrt-Attic = {
+ macAddress = "34:98:b5:60:5e:be";
+ staticIp = "192.168.1.3";
+ };
+ OpenWrt-Basement = {
+ macAddress = "8c:3b:ad:35:c7:8c";
+ staticIp = "192.168.1.4";
+ };
+ ArcherC54 = {
+ macAddress = "12:eb:b6:13:f9:e2";
+ staticIp = "192.168.1.5";
+ };
+ # Desktops
+ T495 = {
+ macAddress = "04:33:c2:9d:34:74";
+ staticIp = "192.168.1.11";
+ };
+ optiplex = {
+ macAddress = "e4:54:e8:bc:ba:05";
+ staticIp = "192.168.1.12";
+ };
+ X230 = {
+ macAddress = "84:3a:4b:60:34:c4";
+ staticIp = "192.168.1.13";
+ };
+ # Services
+ gnuslashprinter = {
+ macAddress = "00:23:24:5b:f0:6d";
+ staticIp = "192.168.1.40";
+ };
+ immich = {
+ macAddress = "02:00:00:00:00:01";
+ staticIp = "192.168.1.41";
+ };
+ jellyfin = {
+ macAddress = "02:00:00:00:00:02";
+ staticIp = "192.168.1.42";
+ };
+ gitea = {
+ macAddress = "02:00:00:00:00:03";
+ staticIp = "192.168.1.43";
+ };
+ bitcoind = {
+ macAddress = "02:00:00:00:00:04";
+ staticIp = "192.168.1.44";
+ };
+ };
+ dns.hostOverrides = {
+ "router.${localDomain}" = "192.168.1.1";
+ "poweredge.${localDomain}" = "192.168.1.10";
+ };
+in {
+ services._router.dnsDhcpConfig = {
+ inherit localDomain dhcp dns;
+ };
+}