+2
-2
lib/modules.nix
+2
-2
lib/modules.nix
···-throw "The option `${showOption loc}' in `${opt.file}' is already declared in ${concatStringsSep " and " (map (d: "`${d}'") res.declarations)}."+throw "The option `${showOption loc}' in `${opt.file}' is already declared in ${showFiles res.declarations}."···else throw "The option value `${showOption loc}' in `${def.file}' is not a ${opt.type.name}.")+(opt.type.merge { prefix = loc; files = map (m: m.file) defsFinal; } (map (m: m.value) defsFinal)) defsFinal;
+11
-10
lib/options.nix
+11
-10
lib/options.nix
······+else throw "Cannot merge definitions of `${showOption args.prefix}' given in ${showFiles args.files}.";···-else if length list != 1 then throw "Multiple definitions. Only one is allowed for this option."+throw "The unique option `${showOption args.prefix}' is defined multiple times, in ${showFiles args.files}."···
+37
-39
lib/types.nix
+37
-39
lib/types.nix
············-merge' = args: defs: imap (n: def: elemType.merge' (addToPrefix args (toString n)) [def]) (concatLists defs);+merge = args: defs: imap (n: def: elemType.merge (addToPrefix args (toString n)) [def]) (concatLists defs);···+throw "The option `${showOption args.prefix}' is defined both null and not null, in ${showFiles args.files}."······
+6
-3
nixos/modules/config/shells-environment.nix
+6
-3
nixos/modules/config/shells-environment.nix
···-else if builtins.lessThan 1 (length xs') then abort "variable in ‘environment.variables’ has multiple values"-else if !builtins.isString (head xs') then abort "variable in ‘environment.variables’ does not have a string value"
+1
-1
nixos/modules/config/sysctl.nix
+1
-1
nixos/modules/config/sysctl.nix
···