feat(registry): validate unique addresses and routes

This commit was merged in pull request #66.
This commit is contained in:
2026-08-25 22:29:56 -04:00
parent f45aa44ead
commit 48d9d3280f
5 changed files with 117 additions and 69 deletions

View File

@@ -1,5 +1,12 @@
{ lib, ... }:
{
checks = [
{
assertion = lib.registry.predicates.uniqueValue (entry: entry.value.domain);
message = "Route domains must be unique.";
}
];
type = lib.types.submodule {
options = {
domain = lib.mkOption {