nix-cache: switch DNS to nix-cache02
Some checks failed
Run nix flake check / flake-check (push) Has been cancelled

- Move nix-cache CNAME from nix-cache01 to nix-cache02
- Remove actions1 CNAME (service removed)
- Update proxy.nix to serve canonical domain on nix-cache02
- Promote nix-cache02 to prod tier with build-host role

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-10 23:22:23 +01:00
parent afff3f28ca
commit 83fce5f927
3 changed files with 7 additions and 7 deletions

View File

@@ -11,8 +11,6 @@
../../common/vm ../../common/vm
]; ];
homelab.dns.cnames = [ "nix-cache" "actions1" ];
homelab.host.role = "build-host"; homelab.host.role = "build-host";
fileSystems."/nix" = { fileSystems."/nix" = {

View File

@@ -13,11 +13,13 @@
../../common/vm ../../common/vm
]; ];
# Host metadata (adjust as needed)
homelab.host = { homelab.host = {
tier = "test"; # Start in test tier, move to prod after validation tier = "prod";
role = "build-host";
}; };
homelab.dns.cnames = [ "nix-cache" ];
# Enable Vault integration # Enable Vault integration
vault.enable = true; vault.enable = true;

View File

@@ -1,10 +1,10 @@
{ pkgs, config, ... }: { pkgs, config, ... }:
let let
# nix-cache01 serves the canonical nix-cache.home.2rjus.net # nix-cache02 serves the canonical nix-cache.home.2rjus.net
# nix-cache02 serves nix-cache02.home.2rjus.net (for testing before DNS cutover) # nix-cache01 serves nix-cache01.home.2rjus.net (deprecated, pending decommission)
hostname = config.networking.hostName; hostname = config.networking.hostName;
domain = domain =
if hostname == "nix-cache01" then if hostname == "nix-cache02" then
"nix-cache.home.2rjus.net" "nix-cache.home.2rjus.net"
else else
"${hostname}.home.2rjus.net"; "${hostname}.home.2rjus.net";