Commit Graph

44 Commits (bf4cafd1ddbd7c396a9df6a5d0fb02f2b7d21896)

Author SHA1 Message Date
Thomas Strobel cad8957eab Add the tool "nixos-typecheck" that can check an option declaration to: 8 years ago
aszlig 98faa0c8f3
lib/types: Set name of types.package to "package" 8 years ago
Igor Pashev b078ae9c16 Use x == null instead of builtins.isNull x 9 years ago
Igor Pashev 363e6978ce Allow enum of integers (and any other type) 9 years ago
Jan Malakhovski 33ae3f2fe4 nixos,lib: move environment generation related copy-paste to lib 9 years ago
Benno Fünfstück 7cd6b3cf76 Revert change of path type 9 years ago
Benno Fünfstück 691f683c8c types.nix: better error message for non-paths 9 years ago
Eelco Dolstra 214d4fb73c Allow options with type "package" to be store paths 9 years ago
Eelco Dolstra 637e35deb9 Use foldl' instead of fold in some places 9 years ago
Eelco Dolstra e212e07cf6 Make types.bool complain on conflicting definitions 9 years ago
Luca Bruno cb45b7ec3e Revert "nixos: Multiple service instances, apply to nginx. See #6784" 9 years ago
Luca Bruno 7ef59c4fe2 nixos: Multiple service instances, apply to nginx. See #6784 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
Shea Levy 0a0a29fd0b Add comments about the module system interface 9 years ago
Shea Levy 4f5c6330c9 types.loaOf: Update check function 9 years ago
Shea Levy 8737d1783f types.attrsOf: Use mergeDefinitions to handle each element 9 years ago
Shea Levy e4bc2592f3 types.listOf: Use mergeDefinitions to handle each element 9 years ago
Nicolas Pierron 4ff1ab5a56 Remove types.functionTo. 10 years ago
Nicolas Pierron b5f0cc3cda Merge options having the submodule type. 10 years ago
Eelco Dolstra f932910323 types.nix: Add ‘either’ type 10 years ago
Shea Levy da4adc2a4f Fix description to match convention 10 years ago
Shea Levy ab2cd34076 Add enum option type 10 years ago
Eelco Dolstra ebe57b1ac8 Remove lib.typeOf 10 years ago
Shea Levy 83c98e4dd6 loaOf: Allow merging definitions from a list into other definitions IFF there is a name attribute 10 years ago
Shea Levy c8f1a6ac1e Revert "Add nixosSubmodule option type" 11 years ago
Shea Levy 4fd825cc94 Revert "Add option type for a submodule with extra arguments" 11 years ago
Shea Levy 220654e205 Revert "Add heterogeneousAttrsOf option type" 11 years ago
Shea Levy 3f70dabad3 Add heterogeneousAttrsOf option type 11 years ago
Shea Levy 8764758044 Add option type for a submodule with extra arguments 11 years ago
Shea Levy ca1c5cfa8f Add nixosSubmodule option type 11 years ago
Shea Levy 84a7a09bc8 Try to improve naming of list elements in loaOf types 11 years ago
Eelco Dolstra 785eaf2cea Add some primops to lib 11 years ago
Eelco Dolstra a61b800da5 Fix backward compatibility with Nix < 1.6 11 years ago
Eelco Dolstra 70a2c54527 Strictly check the arguments to mkOption 11 years ago
Eelco Dolstra 800f9c2037 Show correct position info for errors in submodules 11 years ago
Eelco Dolstra 0afdb1e933 Add option type "str" for unique strings 11 years ago
Eelco Dolstra 73f32d0375 Show precise error messages in option merge failures 11 years ago
Eelco Dolstra d5047faede Remove uses of the "merge" option attribute 11 years ago
Eelco Dolstra f4a418761b Check for undeclared options 11 years ago
Eelco Dolstra c263b5b284 Show error locations in submodules 11 years ago
Eelco Dolstra 89bd18b3af Fix manual generation 11 years ago
Eelco Dolstra b479dac8df Inline some functions on the critical path 11 years ago
Eelco Dolstra cfab329437 Use isType instead of typeOf 11 years ago
Eelco Dolstra 0e333688ce Big cleanup of the NixOS module system 11 years ago
Eelco Dolstra 5fef92c4a0 Move pkgs/lib/ to lib/ 11 years ago
Evgeny Egorochkin 993deb1a4a Hopefully a fixed version of Refactor: introduce isType reducing redundancy. 11 years ago
Eelco Dolstra d28a189af6 Revert "Refactor: introduce isType reducing redundancy (trivial change)" 11 years ago
Marc Weber 52204af457 Refactor: introduce isType reducing redundancy (trivial change) 11 years ago
Marc Weber 53994036d3 Replace fold by all because its more readable and shorter 11 years ago