mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51: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
|
|
@ -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