refactor(dotfiles): split registry responsibilities
This commit was merged in pull request #110.
This commit is contained in:
1 parent
0e5731145e
commit
5af563d70f
10 files changed
+242
-201
No files matched your search
@@ -1,14 +1,14 @@
|
||||
{ lib, ... }:
|
||||
{ lib, util, ... }:
|
||||
{
|
||||
checks = [
|
||||
{
|
||||
assertion = lib.registry.predicates.uniqueValue (entry: entry.value.domain);
|
||||
assertion = util.registry.predicates.uniqueValue (entry: entry.value.domain);
|
||||
message = "Route domains must be unique.";
|
||||
}
|
||||
{
|
||||
assertion =
|
||||
entries:
|
||||
lib.registry.predicates.uniqueValue (entry: entry.value) (
|
||||
util.registry.predicates.uniqueValue (entry: entry.value) (
|
||||
lib.concatMap (entry: map (port: entry // { value = port; }) entry.value.udp.ports) entries
|
||||
);
|
||||
message = "Route UDP ports must be unique.";
|
||||
|
||||
Reference in new issue
Block a user