From c8ff9a19438fd9ff19f52a46fa47ed102a10d11d Mon Sep 17 00:00:00 2001 From: atlas Date: Fri, 2 Oct 2026 09:21:22 +0200 Subject: [PATCH] nix: state the swarm requirement without a no-fallback clause --- nix/host-modules/hive-network.nix | 4 ++-- nix/host-modules/hyperhive.nix | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nix/host-modules/hive-network.nix b/nix/host-modules/hive-network.nix index 02abad58..24c601ca 100644 --- a/nix/host-modules/hive-network.nix +++ b/nix/host-modules/hive-network.nix @@ -198,8 +198,8 @@ in hyperhive requires services.hyperhive.swarm.domain to be set on every host, to the same value on every host of the swarm — the DNS domain of the swarm, of which each hive occupies one - sub-domain. There is no fallback: a guessed value would be a - wrong hostname that evaluates cleanly and deploys. Set it + sub-domain. A guessed value would be a wrong hostname that + evaluates cleanly and deploys. Set it (`services.hyperhive.swarm.domain = "example.com";`) — with `hiveName` it also derives `services.hyperhive.domain` for you. ''; diff --git a/nix/host-modules/hyperhive.nix b/nix/host-modules/hyperhive.nix index 2eed26b5..d382ef44 100644 --- a/nix/host-modules/hyperhive.nix +++ b/nix/host-modules/hyperhive.nix @@ -119,10 +119,10 @@ in **Required** on every host that imports this module, with the same value on every host of the swarm, and deliberately not - defaulted: there is no fallback worth having. A guessed - swarm domain is a wrong hostname that evaluates cleanly and - deploys, which is worse than an eval failure telling an - operator to write down the one address their swarm answers to. + defaulted. A guessed swarm domain is a wrong hostname that + evaluates cleanly and deploys, which is worse than an eval + failure telling an operator to write down the one address their + swarm answers to. Upgrading past this costs one line, once. ''; };