Commit Graph

81 Commits (6f95cb14595dc402bb64d1a99836eab63db2ce7a)

Author SHA1 Message Date
Shea Levy 943592f698
Add setFunctionArgs lib function. 6 years ago
Profpatsch af424a607c lib/modules: Change type error to be gramatically nicer 7 years ago
Graham Christensen 152c63c9ff
Convert libs to a fixed-point 7 years ago
zimbatm 4d545297d8 lib: introduce imap0, imap1 (#25543) 7 years ago
Tom Saeger 5989515b94 lib: trivial spelling fixes 7 years ago
Benjamin Staffin d9123a2329 lib: fix mixed tab/space indents, trailing whitespace, etc 7 years ago
Daiderd Jordan d88721e440
modules: add support for module replacement with disabledModules 7 years ago
Vladimír Čunát fcec3e1c72
Revert "modules: add support for module replacement with disabledModules" 7 years ago
Daiderd Jordan 3f2566689d modules: add support for module replacement with disabledModules 7 years ago
Nikolay Amiantov 5b759293e0 modules lib: type description in type error message 7 years ago
Eelco Dolstra a6bb468acf
mkIf: Check whether the condition is a Boolean 8 years ago
Eric Sagnes e14de56613 module system: extensible option types 8 years ago
Eric Sagnes 26ea947d33 lib/module: add mkChangedOptionModule function 8 years ago
Eric Sagnes 13eefc3a31 lib/module: add mkMergedOptionModule function 8 years ago
Eric Sagnes 4cdfeb78f9 modules: move meta at top level 8 years ago
Eelco Dolstra 587473c574 Fix display of deprecated option definition warnings 8 years ago
Profpatsch 16c923cef2 modules/mkRemovedOptionModule: add replacement doc 8 years ago
Eelco Dolstra f3d94cfc23 Revert "Add the tool "nixos-typecheck" that can check an option declaration to:" 8 years ago
Thomas Strobel cad8957eab Add the tool "nixos-typecheck" that can check an option declaration to: 8 years ago
Eelco Dolstra 5f077e2296 Factor out option renaming 9 years ago
Nicolas B. Pierron c47e89623b Update option-usages.nix expression to work with newer version of the module system. 9 years ago
Eelco Dolstra cbecbd01f9 Module system: Fix ‘definitions’ field 9 years ago
Eelco Dolstra f463d24903 Add read-only options 9 years ago
Eelco Dolstra 273d9ffd6a Remove superfluous copy of "min" 9 years ago
Eelco Dolstra 67b1a20f12 Minor module system evaluation speedups 9 years ago
Eelco Dolstra 0ca10a445a Fix indentation 9 years ago
Eelco Dolstra 4cc6c83477 concatLists (map ...) -> concatMap 9 years ago
Eelco Dolstra 637e35deb9 Use foldl' instead of fold in some places 9 years ago
Nicolas B. Pierron a6b455bbae NixOS modules: Add error context on module arguments evaluation. 9 years ago
Eelco Dolstra c738b309ee types.uniq types.bool -> types.bool 9 years ago
Dan Peebles b13cb54614 Bring an importable modulesPath back from the dead, in the only way I know 9 years ago
Nicolas B. Pierron 05e8a48fb4 Document and rename internal option of modules. 9 years ago
Nicolas B. Pierron ed91474e9b Share common code for merging option definitions. 9 years ago
Nicolas B. Pierron dd4f5f6b78 Rename mergeDefinitions internal steps to functions which are independent of each others. 9 years ago
Nicolas B. Pierron 83dc60456e Expose submodule arguments to builtins.functionArgs before applying the arguments. 9 years ago
Shea Levy 772b8869d2 Add comment about limitation on __internal.check 9 years ago
Shea Levy 0a0a29fd0b Add comments about the module system interface 9 years ago
Shea Levy e3eff53037 evalModules: Add internal option for the check argument 9 years ago
Shea Levy e4a06f35b1 nixos: Don't evaluate twice to get the value of config.nixpkgs 9 years ago
Shea Levy 1d62ad4746 modules.nix: Generate the extra argument set from the configuration 9 years ago
Shea Levy 9255c48a06 Move property processing, type checking, and merge code into a function 9 years ago
Nicolas B. Pierron d7f29acd48 modules: Extract mkAliasDefinition from the rename.nix NixOS module. 10 years ago
Luca Bruno 350fa1f775 nixos: Try to show an helpful message when the user sets config. or options. 10 years ago
Eelco Dolstra 97220c973f Replace hasAttr/getAttr calls with the ? and . operators 10 years ago
Eelco Dolstra 6c2bf141cf lib: Use arithmetic operators rather than builtins.add etc. 10 years ago
Nicolas Pierron b5f0cc3cda Merge options having the submodule type. 10 years ago
Nicolas Pierron bb944b4dc8 Annotate option-set options with the file in which they are declared. 10 years ago
Nicolas Pierron eb7a17a1cf Add error an message to prevent use of useless submodules. 10 years ago
Jan Malakhovski 0ea84c4445 minor fix in documentation 10 years ago
Rob Vermaas 90a7711e08 Re-introduce (marked as obsolete) mkStrict function, to allow old nixops deployments to keep working. 10 years ago