mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21: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";
|
system.stateVersion = "24.11";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
domains.assertUnique = true;
|
domains.validate = true;
|
||||||
ports.assertUnique = true;
|
ports.validate = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
custom = {
|
custom = {
|
||||||
|
|
|
||||||
|
|
@ -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 = {
|
||||||
|
|
|
||||||
|
|
@ -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 = {
|
||||||
|
|
|
||||||
|
|
@ -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 =
|
||||||
|
|
|
||||||
|
|
@ -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 =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue