site-config: dedupe cross-host values, fix stale dark-reader urls, drop desktop 1g hugepages

new site-config.nix holds values previously duplicated across hosts:
  domain, old_domain, contact_email, timezone, binary_cache (url + pubkey),
  dns_servers, lan (cidr + gateway), hosts.{muffin,yarn} (ip/alias/ssh_host_key),
  ssh_keys.{laptop,desktop,ci_deploy}.

threaded through specialArgs on all three hosts + home-manager extraSpecialArgs +
homeConfigurations.primary + serverLib. service-configs.nix now takes
{ site_config } as a function arg and drops its https namespace; per-service
domains (gitea/matrix/ntfy/mollysocket/livekit/firefox-sync/grafana) are
derived from site_config.domain. ~15 service files and 6 vm tests migrated.

breakage fixes rolled in:
 - home/progs/zen/dark-reader.nix: 5 stale *.gardling.com entries in
   disabledFor rewritten to *.sigkill.computer (caddy 301s the old names so
   these never fired and the new sigkill urls were getting dark-reader applied)
 - modules/desktop-common.nix: drop unused hugepagesz=1G/hugepages=3
   kernelParams (no consumer on mreow or yarn; xmrig on muffin still reserves
   its own via services/monero/xmrig.nix)

verification: muffin toplevel is bit-identical to pre-refactor baseline.
mreow/yarn toplevels differ only in boot.json kernelParams + darkreader
storage.js (nix-diff verified). deployGuardTest and fail2banVaultwardenTest
(latter exercises site_config.domain via bitwarden.nix) pass.
This commit is contained in:
2026-04-22 20:48:29 -04:00
parent 8cdb9c4381
commit d00ff42e8e
28 changed files with 190 additions and 100 deletions

View File

@@ -1,3 +1,4 @@
{ site_config }:
rec {
zpool_ssds = "tank";
zpool_hdds = "hdds";
@@ -206,15 +207,9 @@ rec {
};
};
https = {
certs = services_dir + "/http_certs";
domain = "sigkill.computer";
old_domain = "gardling.com"; # Redirect traffic from old domain
};
gitea = {
dir = services_dir + "/gitea";
domain = "git.${https.domain}";
domain = "git.${site_config.domain}";
};
postgres = {
@@ -278,19 +273,19 @@ rec {
matrix = {
dataDir = "/var/lib/continuwuity";
domain = "matrix.${https.domain}";
domain = "matrix.${site_config.domain}";
};
ntfy = {
domain = "ntfy.${https.domain}";
domain = "ntfy.${site_config.domain}";
};
mollysocket = {
domain = "mollysocket.${https.domain}";
domain = "mollysocket.${site_config.domain}";
};
livekit = {
domain = "livekit.${https.domain}";
domain = "livekit.${site_config.domain}";
};
syncthing = {
@@ -324,12 +319,12 @@ rec {
};
firefox_syncserver = {
domain = "firefox-sync.${https.domain}";
domain = "firefox-sync.${site_config.domain}";
};
grafana = {
dir = services_dir + "/grafana";
domain = "grafana.${https.domain}";
domain = "grafana.${site_config.domain}";
};
trilium = {