fix(nixos): preserve address registry uniqueness

This commit is contained in:
2026-09-10 08:45:51 -04:00
parent 1c043c7239
commit 8a60da1c7c
2 changed files with 9 additions and 5 deletions

View File

@@ -64,11 +64,8 @@
pools.pikachu = { }; pools.pikachu = { };
}; };
registry.address.pikachu = { registry.address.pikachu.self = "10.23.10.102";
self = "10.23.10.102"; registry.route.pikachu.self = {
valheim = "10.23.10.102";
};
registry.route.pikachu.valheim = {
domain = "valheim.alexion.dev"; domain = "valheim.alexion.dev";
udp.ports = [ udp.ports = [
config.modules.services.games.valheim.port config.modules.services.games.valheim.port

View File

@@ -1,4 +1,11 @@
{ lib, ... }: { lib, ... }:
{ {
type = lib.types.str; type = lib.types.str;
checks = [
{
assertion = lib.registry.predicates.uniqueValue (entry: entry.value);
message = "Address registry values must be unique.";
}
];
} }