Improve wording in messages

This commit is contained in:
SebastianStork 2026-03-13 17:39:38 +01:00
parent e69e9c8491
commit e2f312b2c5
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
9 changed files with 31 additions and 27 deletions

View file

@ -11,8 +11,11 @@
genAttrs = f: names: lib.genAttrs names f;
mkInvalidConfigMessage = subject: reason: "Invalid configuration for ${subject}: ${reason}.";
mkUnprotectedMessage =
name: "${name} should only be exposed on private networks; access control isn't yet configured";
name:
self.lib.mkInvalidConfigMessage name "the service must use a private domain until access control is configured";
relativePath = path: path |> toString |> lib.removePrefix "${self}/";