Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2022-12-31 | lib.strings: isSimpleCoercibleString -> isStringLike | Robert Hensing | 1 | -3/+3 | |
2022-12-31 | lib.types.path: Do not allow lists of strings | Robert Hensing | 1 | -2/+1 | |
2022-12-31 | treewide: isCoercibleToString -> isMoreCoercibleToString | Robert Hensing | 1 | -2/+2 | |
No change in behavior. | |||||
2022-12-31 | lib.types.anything: Use isSimpleCoercibleToString | Robert Hensing | 1 | -1/+2 | |
Expecting no change in behavior. | |||||
2022-12-29 | lib.types.loaOf: Update comment to say deprecate instead of remove | Robert Hensing | 1 | -1/+1 | |
2022-12-29 | Revert "lib/types: remove loaOf" | Robert Hensing | 1 | -0/+9 | |
This reverts commit c8c538f2ab2432f2dd1eb637657c1bf5b54a147f. Reason: removal did not follow a deprecation process and it hurts nixops 1.7 users. | |||||
2022-12-19 | lib/types: remove loaOf | Sandro Jäckel | 1 | -9/+0 | |
2022-11-08 | lib/types: add `descriptionClass` for `path` | Naïm Favier | 1 | -0/+1 | |
2022-10-18 | Merge pull request #194035 from Ma27/show-option-quoting | Robert Hensing | 1 | -2/+2 | |
lib/options/showOption: fix quoting of attr-names that are not identifiers | |||||
2022-10-13 | Merge pull request #192755 from hercules-ci/lib-types-unspecified-name | Silvan Mosberger | 1 | -1/+2 | |
2022-10-07 | lib/types: always use `<function body>` instead of `[function body]` to ↵ | Maximilian Bosch | 1 | -2/+2 | |
indicate a function inside an option structure The motivation is to have a single identifier for that. Useful for the next commit where I'll try to escape option-parts correctly (options can be any kind of strings, but unless these are Nix identifiers, they must be quoted). Since `<function body>` (or `<name>`/`*`) are special identifiers in error messages and the manual, we need a unique way to mark an option part as function call because these are not to be quoted. | |||||
2022-09-26 | lib/types.nix: remove unused bindings | figsoda | 1 | -2/+0 | |
2022-09-25 | lib/types.nix: Document that it should not be used | piegames | 1 | -2/+16 | |
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com> Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io> | |||||
2022-09-24 | lib.types.unspecified: Make name match attribute name again | Robert Hensing | 1 | -1/+2 | |
@Infinisil: This isn't right, the name shouldn't be changed, but instead a description should be added https://github.com/NixOS/nixpkgs/pull/191353#discussion_r978983401 | |||||
2022-09-17 | lib.types: Add parentheses where description is ambiguous | Robert Hensing | 1 | -13/+69 | |
2022-09-09 | Merge pull request #181834 from ncfavier/numbers | Silvan Mosberger | 1 | -9/+33 | |
lib/types: add `number` | |||||
2022-07-24 | lib/types: add `number` | Naïm Favier | 1 | -9/+33 | |
For numbers that can be ints or floats. | |||||
2022-06-25 | lib.types, nixos/users: Make passwdEntry available | Klemens Nanni | 1 | -0/+6 | |
More nixpkgs code such as `boot.initrd.systemd.emergencyAccess` defines options that takes hashed passwords, so move the type definition from modules/ into lib/. The type definition itself stays unchanged. | |||||
2022-06-14 | lib.deferredModule: Make it properly singular | Robert Hensing | 1 | -1/+3 | |
2022-06-14 | lib.types: Add deferredModuleWith | Robert Hensing | 1 | -2/+22 | |
2022-06-14 | lib.types.deferredModule: Allow path-typed module references | Robert Hensing | 1 | -1/+1 | |
2022-06-14 | lib.types.deferredModule: Improve reported location | Robert Hensing | 1 | -1/+1 | |
2022-06-14 | lib.types: Add deferredModule | Robert Hensing | 1 | -0/+8 | |
2022-06-14 | lib/types, lib/modules: Remove unused extensionOffset | Robert Hensing | 1 | -6/+0 | |
2022-06-14 | lib/types: Use map instead of imap1 in submoduleWith | Robert Hensing | 1 | -1/+1 | |
2022-06-14 | lib/types: Simplify submoduleWith shorthandOnlyDefinesConfig handling | Silvan Mosberger | 1 | -12/+3 | |
The module system already uses the parent module's _file as a fallback, so we don't need to inject the file in a weird way | |||||
2022-06-10 | Merge pull request #173621 from ncfavier/submodule-description | Robert Hensing | 1 | -6/+17 | |
lib/types: allow custom `submoduleWith` descriptions | |||||
2022-05-19 | lib/types: allow custom `submoduleWith` descriptions | Naïm Favier | 1 | -6/+17 | |
Currently the only way to set the description for a submodule type is to use `freeformType`. This is not ideal as it requires setting a freeform type, and evaluates the submodule config unnecessarily. Instead, add a `description` argument to `submoduleWith`. | |||||
2022-05-17 | Merge pull request #172813 from hercules-ci/functionTo-properly | Robert Hensing | 1 | -1/+3 | |
`lib.types.functionTo` type merging and docs | |||||
2022-05-13 | lib.types.functionTo: Add pseudo-attr to generated docs | Robert Hensing | 1 | -1/+1 | |
2022-05-13 | lib.types.functionTo: Support type merging | Robert Hensing | 1 | -0/+2 | |
2022-04-27 | lib/types: Drop misleading plural from type descriptions #170561 | Klemens Nanni | 1 | -3/+3 | |
Probably being the most prominent document demonstrating the problem, configuration.nix(5) describes various types in plural, e.g. - ` Type: list of strings` - ` Type: list of systemd options` However, there are other cases where appending "s" to the inner type effectively changes the type, e.g. - ``` Type: list of string matching the pattern [a-zA-Z0-9@%:_.\-]+[.](service|socket|device|mount|automount|swap|target|path|timer|scope|slice)s ``` This should've read "list of string[s]..." but instead changes the regular expression. Simply drop the best-effort plural in favour of correctness and simplicity rather than adding more grammar related logic/trying to fix this. | |||||
2022-04-24 | lib.types.submoduleWith: Avoid _key collisions after extendModules | Robert Hensing | 1 | -2/+8 | |
2022-03-18 | lib/modules: Finally remove deprecated types.optionSet | Silvan Mosberger | 1 | -8/+0 | |
types.optionSet has been deprecated for almost 10 years now (0e333688cea468a28516bf6935648c03ed62a7bb)! A removal was already attempted in 2019 (27982b408e465554b8831f492362bc87ed0ec02a), but it was promptly reinstantiated since some third-party uses were discovered (f531ce75e4178c6867cc1d0f7fec96b2d5c3f1cb). It's finally time to remove it for good :) | |||||
2022-03-16 | Merge pull request #156533 from ↵ | Silvan Mosberger | 1 | -7/+15 | |
hercules-ci/issue-146882-transparent-submodule-options lib.modules: Let module declare options directly in bare submodule | |||||
2022-03-11 | Merge pull request #163443 from ncfavier/fix-types-package | Robert Hensing | 1 | -2/+10 | |
lib.types.package: only call toDerivation when necessary | |||||
2022-03-11 | lib.types.package: only call toDerivation when necessary | Naïm Favier | 1 | -2/+10 | |
The current logic assumes that everything that isn't a derivation is a store path, but it can also be something that's *coercible* to a store path, like a flake input. Unnecessary uses of `lib.toDerivation` result in errors in pure evaluation mode when `builtins.storePath` is disabled. Also document what a `package` is. | |||||
2022-03-10 | lib.types.optionType: Only merge when necessary | Robert Hensing | 1 | -1/+3 | |
2022-03-03 | lib.modules: Inline a private function | Robert Hensing | 1 | -7/+7 | |
This should save about four calls per module. | |||||
2022-03-03 | lib.modules: Default shorthandOnlyDefinesConfig to true when null | Robert Hensing | 1 | -1/+5 | |
2022-03-03 | lib.modules: Make option injection work when shorthandOnlyDefinesConfig | Robert Hensing | 1 | -1/+5 | |
2022-03-03 | lib.types.submodule: Remove redundant isSubmodule attr | Robert Hensing | 1 | -5/+0 | |
2022-03-03 | lib.modules: Let module declare options directly in bare submodule | Robert Hensing | 1 | -0/+5 | |
... where a bare submodule is an option that has a type like `submoduleWith x`, as opposed to `attrsOf (submoduleWith x)`. This makes migration unnecessary when introducing a freeform type in an existing option tree. Closes #146882 | |||||
2022-03-02 | Merge pull request #162283 from Infinisil/functionTo.description | Silvan Mosberger | 1 | -1/+1 | |
lib/types: Fix functionTo description | |||||
2022-03-01 | lib.types: Introduce `types.optionType` | Silvan Mosberger | 1 | -1/+30 | |
This type correctly merges multiple option types together while also annotating them with file information. In a future commit this will be used for `_module.freeformType` | |||||
2022-03-01 | lib/types: Fix functionTo description | Silvan Mosberger | 1 | -1/+1 | |
2022-02-22 | lib/types: Introduce types.raw for unprocessed values | Silvan Mosberger | 1 | -0/+7 | |
2022-02-17 | lib/types: Fix emptyValue of listOf and nonEmptyListOf | Silvan Mosberger | 1 | -2/+2 | |
An empty list is [], not {}! Also, non-empty lists shouldn't have a default of an empty list! | |||||
2022-01-24 | lib.types: Add unique like uniq, but custom errors | Robert Hensing | 1 | -1/+14 | |
Couldn't extend types.uniq and it had a silly name anyway. Now we can have better error messages. | |||||
2022-01-21 | types.singleLineStr: Improve description | Jules Aguillon | 1 | -1/+1 | |
Co-authored-by: pennae <82953136+pennae@users.noreply.github.com> |