mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
meta: Rename option assertUnique to validate
This commit is contained in:
parent
0b2fbc2c6d
commit
de266a8d91
5 changed files with 10 additions and 10 deletions
|
|
@ -3,8 +3,8 @@
|
|||
system.stateVersion = "24.11";
|
||||
|
||||
meta = {
|
||||
domains.assertUnique = true;
|
||||
ports.assertUnique = true;
|
||||
domains.validate = true;
|
||||
ports.validate = true;
|
||||
};
|
||||
|
||||
custom = {
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
system.stateVersion = "24.11";
|
||||
|
||||
meta = {
|
||||
domains.assertUnique = true;
|
||||
ports.assertUnique = true;
|
||||
domains.validate = true;
|
||||
ports.validate = true;
|
||||
};
|
||||
|
||||
custom = {
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
system.stateVersion = "24.11";
|
||||
|
||||
meta = {
|
||||
domains.assertUnique = true;
|
||||
ports.assertUnique = true;
|
||||
domains.validate = true;
|
||||
ports.validate = true;
|
||||
};
|
||||
|
||||
custom = {
|
||||
|
|
|
|||
|
|
@ -21,10 +21,10 @@ in
|
|||
|> lib.concatLists;
|
||||
readOnly = true;
|
||||
};
|
||||
assertUnique = lib.mkEnableOption "";
|
||||
validate = lib.mkEnableOption "";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.assertUnique {
|
||||
config = lib.mkIf cfg.validate {
|
||||
assertions =
|
||||
let
|
||||
duplicateDomains =
|
||||
|
|
|
|||
|
|
@ -18,10 +18,10 @@ in
|
|||
type = lib.types.listOf lib.types.port;
|
||||
default = [ ];
|
||||
};
|
||||
assertUnique = lib.mkEnableOption "";
|
||||
validate = lib.mkEnableOption "";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.assertUnique {
|
||||
config = lib.mkIf cfg.validate {
|
||||
assertions =
|
||||
let
|
||||
findDuplicatePorts =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue