meta: Rename option assertUnique to validate

This commit is contained in:
SebastianStork 2025-08-28 19:19:29 +02:00
parent 0b2fbc2c6d
commit de266a8d91
5 changed files with 10 additions and 10 deletions

View file

@ -3,8 +3,8 @@
system.stateVersion = "24.11"; system.stateVersion = "24.11";
meta = { meta = {
domains.assertUnique = true; domains.validate = true;
ports.assertUnique = true; ports.validate = true;
}; };
custom = { custom = {

View file

@ -3,8 +3,8 @@
system.stateVersion = "24.11"; system.stateVersion = "24.11";
meta = { meta = {
domains.assertUnique = true; domains.validate = true;
ports.assertUnique = true; ports.validate = true;
}; };
custom = { custom = {

View file

@ -3,8 +3,8 @@
system.stateVersion = "24.11"; system.stateVersion = "24.11";
meta = { meta = {
domains.assertUnique = true; domains.validate = true;
ports.assertUnique = true; ports.validate = true;
}; };
custom = { custom = {

View file

@ -21,10 +21,10 @@ in
|> lib.concatLists; |> lib.concatLists;
readOnly = true; readOnly = true;
}; };
assertUnique = lib.mkEnableOption ""; validate = lib.mkEnableOption "";
}; };
config = lib.mkIf cfg.assertUnique { config = lib.mkIf cfg.validate {
assertions = assertions =
let let
duplicateDomains = duplicateDomains =

View file

@ -18,10 +18,10 @@ in
type = lib.types.listOf lib.types.port; type = lib.types.listOf lib.types.port;
default = [ ]; default = [ ];
}; };
assertUnique = lib.mkEnableOption ""; validate = lib.mkEnableOption "";
}; };
config = lib.mkIf cfg.assertUnique { config = lib.mkIf cfg.validate {
assertions = assertions =
let let
findDuplicatePorts = findDuplicatePorts =