Commit Graph

76 Commits (212efab7ace3b6a42f7955bf48286c78e218bfa0)

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