refactor(network): use address registry

This commit was merged in pull request #60.
This commit is contained in:
2026-08-23 23:02:43 -04:00
parent 6f963920ec
commit c267a2ec5c
5 changed files with 55 additions and 94 deletions

View File

@@ -1,4 +1,9 @@
{ config, pkgs, ... }:
{
config,
pkgs,
registry,
...
}:
# pikachu — AZW ME Pro server.
# Disk layout is in ./disk.nix.
# `fileSystems` for the root disk are derived from it.
@@ -79,7 +84,7 @@
vlan = 20;
mac = "BC:24:11:C1:CD:28";
dataPath = "/pikachu/data/actualbudget";
endpoint.address = "10.23.20.42";
address = "10.23.20.42";
reverseProxy = {
enable = true;
host = "budget.alexion.dev";
@@ -91,7 +96,7 @@
enable = true;
vlan = 20;
mac = "02:98:64:5a:07:4f";
endpoint.address = "10.23.20.109";
address = "10.23.20.109";
};
guests.copyparty = {
@@ -99,12 +104,12 @@
vlan = 20;
mac = "02:23:20:39:23:01";
statePath = "/pikachu/data/copyparty";
endpoint.address = "10.23.20.126";
address = "10.23.20.126";
reverseProxy = {
enable = true;
host = "files.alexion.dev";
port = 3923;
trustedSources = [ "${config.modules.network.endpoints."reverse-proxy".address}/32" ];
trustedSources = [ "${registry.address.${config.networking.hostName}."reverse-proxy"}/32" ];
};
volumes = {
"/inbox" = {