Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2024-04-09 | Merge pull request #284551 from hercules-ci/types-attrTag | Silvan Mosberger | 1 | -1/+101 | |
Add `types.attrTag` | |||||
2024-04-04 | doc: migrate trivial files to doc-comment format (#299986) | Johannes Kirschbauer | 1 | -9/+18 | |
* doc: migrate trivial files to doc-comment format * fix: revert some comments * Apply suggestions from code review Thanks @danielSidhion Co-authored-by: Daniel Sidhion <DanielSidhion@users.noreply.github.com> * Update lib/types.nix --------- Co-authored-by: Daniel Sidhion <DanielSidhion@users.noreply.github.com> Co-authored-by: Silvan Mosberger <github@infinisil.com> | |||||
2024-04-04 | types.attrTag: Remove unnecessary definitions override | Robert Hensing | 1 | -1/+0 | |
Committing because tests pass. Co-authored-by: Silvan Mosberger <github@infinisil.com> | |||||
2024-04-04 | lib.types.attrTag: Fix declarationPositions after merge | Robert Hensing | 1 | -1/+1 | |
2024-04-04 | types.attrTag: Remove substSubmodules | Robert Hensing | 1 | -9/+0 | |
I haven't managed to trigger the error, and it turns out that this method is optional. Specifically, getSubmodules is unimplemented (and unimplementable), the tests pass, and we seem to have good location info. | |||||
2024-04-04 | types.attrTagWith: remove | Robert Hensing | 1 | -10/+18 | |
Keep it simple for now. | |||||
2024-04-04 | lib.types.attrTag: Custom error when passing bare type | Robert Hensing | 1 | -1/+8 | |
2024-04-04 | lib.types.attrTag: Remove tags from description | Robert Hensing | 1 | -1/+2 | |
You can find them in the sub-options now. | |||||
2024-04-04 | lib.types.attrTag: Provide declarations, definitions | Robert Hensing | 1 | -2/+19 | |
2024-04-04 | lib/types.nix: Fix getSubOptions doc | Robert Hensing | 1 | -1/+1 | |
This comment was added in 73f32d03758a5, when it was already supposed to be an attrset. | |||||
2024-04-04 | lib.types.attrTag: Support type merging | Robert Hensing | 1 | -1/+22 | |
2024-04-04 | lib.types.attrTag: Take options instead of types | Robert Hensing | 1 | -6/+21 | |
2024-04-04 | lib.types.attrTag: Support module docs | Robert Hensing | 1 | -1/+5 | |
2024-02-11 | lib.types.attrTag: init | Robert Hensing | 1 | -0/+37 | |
2024-02-10 | Merge pull request #284512 from hercules-ci/lib-types-unique-merge | Silvan Mosberger | 1 | -13/+2 | |
lib.types.unique: Check inner type deeply | |||||
2024-02-04 | lib.types.uniq: Check inner type | Robert Hensing | 1 | -12/+1 | |
We now reuse the `unique` type, which implements this. Keeping the duplication around would be bad at this point. | |||||
2024-01-29 | types.nix: fix nonEmptyListOf | Danila Danko | 1 | -0/+1 | |
2024-01-28 | lib.types.unique: Check inner type deeply | Robert Hensing | 1 | -1/+1 | |
This doesn't change uniq. Why not? - In NixOS it seems that uniq is only used with simple types that are fully checked by t.check. - It exists for much longer and is used more widely. - I believe we should deprecate it, because unique was already better. - unique can be a proving ground. | |||||
2023-12-23 | lib.types: Improve descriptions of composed types that have commas | Robert Hensing | 1 | -3/+19 | |
Type: either ints.positive (enum ["auto"]) Before: positive integer, meaning >0 or value "auto" (singular enum) After: positive integer, meaning >0, or value "auto" (singular enum) | |||||
2023-12-15 | treewide: add __attrsFailEvaluation and __recurseIntoDerivationForReleaseJobs | Adam Joseph | 1 | -0/+1 | |
2023-12-08 | lib.types.boolByOr: init | Silvan Mosberger | 1 | -0/+16 | |
This type is necessary to have correct merging behavior for `allowUnfreePredicate` and `allowInsecurePredicate` Co-authored-by: Robert Hensing <roberth@users.noreply.github.com> | |||||
2023-08-10 | lib.types.string: Use lib.warn instead of deprecationMessage | Silvan Mosberger | 1 | -4/+6 | |
This will cause a poorer error message without option location information, but it will catch all uses of its use. | |||||
2023-08-10 | Revert "lib.types.string: Deprecation error instead of warning" | Silvan Mosberger | 1 | -1/+4 | |
This reverts commit c59c6b1c57da542b6b4af5d2ac27d1b99e7f0c5e. This was a bit too ambitious, because no warnings were previously triggered when `string` was nested e.g. `attrsOf string`, `nullOr string`, etc. Support for nested type deprecation warnings was introduced in 4b54aedee5e05aaf2838f6d951508b83e33d2baa, but had to be reverted in a36e6760e9be0ec260b637a06d751d39e2a78e4e because it caused infinite recursion for some users, and I couldn't remember that it was reverted. | |||||
2023-08-08 | lib.types.string: Deprecation error instead of warning | Silvan Mosberger | 1 | -4/+1 | |
The type has given a warning on use since [4 years ago](03392cd336b128a1639c648baf0f6c1a1271e0d2), I think it's safe to move the deprecation to the next stage: An error instead of a warning. | |||||
2023-06-27 | lib/types: add pathInStore | Naïm Favier | 1 | -0/+9 | |
2023-06-23 | lib/types: remove unused rec | figsoda | 1 | -1/+1 | |
2023-05-17 | lib.types.submoduleWith: Interoperate with older version of submoduleWith | Robert Hensing | 1 | -3/+5 | |
2023-05-10 | lib.types.pkgs: init | Robert Hensing | 1 | -0/+8 | |
A nominal type. | |||||
2023-05-06 | lib/modules: Move class out of specialArgs | Robert Hensing | 1 | -2/+8 | |
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 | |