feat(bind9): Add nix-cache record and Binnenpost proxy

This commit is contained in:
Tibo De Peuter 2026-03-17 18:40:13 +01:00
parent a933b7d735
commit c0f5d9ef1f
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
2 changed files with 13 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, inputs, config, ... }:
{
config = {
@ -83,6 +83,14 @@
"traefik.http.routers.hugo.rule" = "Host(`hugo.depeuter.dev`)";
"traefik.http.services.hugo.loadbalancer.server.url" = "https://192.168.0.11:444";
"traefik.http.routers.attic.rule" = "Host(`${inputs.self.nixosConfigurations.BinaryCache.config.homelab.services.attic.domain}`)";
"traefik.http.services.attic.loadbalancer.server.url" =
let
bcConfig = inputs.self.nixosConfigurations.BinaryCache.config;
bcIp = (pkgs.lib.head bcConfig.networking.interfaces.ens18.ipv4.addresses).address;
bcPort = bcConfig.homelab.services.attic.port;
in "http://${bcIp}:${toString bcPort}";
};
system.stateVersion = "24.05";

View file

@ -1,6 +1,6 @@
$TTL 604800
@ IN SOA ns1 admin (
15 ; Serial
16 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
@ -40,6 +40,9 @@ sonarr IN A 192.168.0.33
; Development VM
plex IN A 192.168.0.91
; Binary Cache (via Binnenpost proxy)
nix-cache IN A 192.168.0.89
; Catchalls
*.production IN A 192.168.0.31
*.development IN A 192.168.0.91