| Commit message (Expand) | Author | Age | Files | Lines |
| * | lib.types.string: Use lib.warn instead of deprecationMessage•••This will cause a poorer error message without option location
information, but it will catch all uses of its use.
| Silvan Mosberger | 2023-08-10 | 1 | -4/+6 |
| * | Revert "lib.types.string: Deprecation error instead of warning"•••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.
| Silvan Mosberger | 2023-08-10 | 1 | -1/+4 |
| * | lib.types.string: Deprecation error instead of warning•••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.
| Silvan Mosberger | 2023-08-08 | 1 | -4/+1 |
| * | lib/types: add pathInStore | Naïm Favier | 2023-06-27 | 1 | -0/+9 |
| * | lib/types: remove unused rec | figsoda | 2023-06-23 | 1 | -1/+1 |
| * | lib.types.submoduleWith: Interoperate with older version of submoduleWith | Robert Hensing | 2023-05-17 | 1 | -3/+5 |
| * | lib.types.pkgs: init•••A nominal type.
| Robert Hensing | 2023-05-10 | 1 | -0/+8 |
| * | lib/modules: Move class out of specialArgs | Robert Hensing | 2023-05-06 | 1 | -2/+8 |
| * | lib.strings: isSimpleCoercibleString -> isStringLike | Robert Hensing | 2022-12-31 | 1 | -3/+3 |
| * | lib.types.path: Do not allow lists of strings | Robert Hensing | 2022-12-31 | 1 | -2/+1 |
| * | treewide: isCoercibleToString -> isMoreCoercibleToString•••No change in behavior.
| Robert Hensing | 2022-12-31 | 1 | -2/+2 |
| * | lib.types.anything: Use isSimpleCoercibleToString•••Expecting no change in behavior.
| Robert Hensing | 2022-12-31 | 1 | -1/+2 |
| * | lib.types.loaOf: Update comment to say deprecate instead of remove | Robert Hensing | 2022-12-29 | 1 | -1/+1 |
| * | Revert "lib/types: remove loaOf"•••This reverts commit c8c538f2ab2432f2dd1eb637657c1bf5b54a147f.
Reason: removal did not follow a deprecation process and it hurts
nixops 1.7 users.
| Robert Hensing | 2022-12-29 | 1 | -0/+9 |
| * | lib/types: remove loaOf | Sandro Jäckel | 2022-12-19 | 1 | -9/+0 |
| * | lib/types: add `descriptionClass` for `path` | Naïm Favier | 2022-11-08 | 1 | -0/+1 |
| * | Merge pull request #194035 from Ma27/show-option-quoting•••lib/options/showOption: fix quoting of attr-names that are not identifiers | Robert Hensing | 2022-10-18 | 1 | -2/+2 |
| |\ |
|
| | * | lib/types: always use `<function body>` instead of `[function body]` to indic...•••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.
| Maximilian Bosch | 2022-10-07 | 1 | -2/+2 |
| * | | Merge pull request #192755 from hercules-ci/lib-types-unspecified-name | Silvan Mosberger | 2022-10-13 | 1 | -1/+2 |
| |\ \
| |/
|/| |
|
| | * | lib.types.unspecified: Make name match attribute name again•••@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
| Robert Hensing | 2022-09-24 | 1 | -1/+2 |
| * | | lib/types.nix: remove unused bindings | figsoda | 2022-09-26 | 1 | -2/+0 |
| * | | lib/types.nix: Document that it should not be used•••Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
| piegames | 2022-09-25 | 1 | -2/+16 |
| |/ |
|
| * | lib.types: Add parentheses where description is ambiguous | Robert Hensing | 2022-09-17 | 1 | -13/+69 |
| * | Merge pull request #181834 from ncfavier/numbers•••lib/types: add `number` | Silvan Mosberger | 2022-09-09 | 1 | -9/+33 |
| |\ |
|
| | * | lib/types: add `number`•••For numbers that can be ints or floats.
| Naïm Favier | 2022-07-24 | 1 | -9/+33 |
| * | | lib.types, nixos/users: Make passwdEntry available•••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.
| Klemens Nanni | 2022-06-25 | 1 | -0/+6 |
| |/ |
|
| * | lib.deferredModule: Make it properly singular | Robert Hensing | 2022-06-14 | 1 | -1/+3 |
| * | lib.types: Add deferredModuleWith | Robert Hensing | 2022-06-14 | 1 | -2/+22 |
| * | lib.types.deferredModule: Allow path-typed module references | Robert Hensing | 2022-06-14 | 1 | -1/+1 |
| * | lib.types.deferredModule: Improve reported location | Robert Hensing | 2022-06-14 | 1 | -1/+1 |
| * | lib.types: Add deferredModule | Robert Hensing | 2022-06-14 | 1 | -0/+8 |
| * | lib/types, lib/modules: Remove unused extensionOffset | Robert Hensing | 2022-06-14 | 1 | -6/+0 |
| * | lib/types: Use map instead of imap1 in submoduleWith | Robert Hensing | 2022-06-14 | 1 | -1/+1 |
| * | lib/types: Simplify submoduleWith shorthandOnlyDefinesConfig handling•••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
| Silvan Mosberger | 2022-06-14 | 1 | -12/+3 |
| * | Merge pull request #173621 from ncfavier/submodule-description•••lib/types: allow custom `submoduleWith` descriptions | Robert Hensing | 2022-06-10 | 1 | -6/+17 |
| |\ |
|
| | * | lib/types: allow custom `submoduleWith` descriptions•••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`.
| Naïm Favier | 2022-05-19 | 1 | -6/+17 |
| * | | Merge pull request #172813 from hercules-ci/functionTo-properly•••`lib.types.functionTo` type merging and docs | Robert Hensing | 2022-05-17 | 1 | -1/+3 |
| |\ \ |
|
| | * | | lib.types.functionTo: Add pseudo-attr to generated docs | Robert Hensing | 2022-05-13 | 1 | -1/+1 |
| | * | | lib.types.functionTo: Support type merging | Robert Hensing | 2022-05-13 | 1 | -0/+2 |
| | |/ |
|
| * / | lib/types: Drop misleading plural from type descriptions #170561•••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.
| Klemens Nanni | 2022-04-27 | 1 | -3/+3 |
| |/ |
|
| * | lib.types.submoduleWith: Avoid _key collisions after extendModules | Robert Hensing | 2022-04-24 | 1 | -2/+8 |
| * | lib/modules: Finally remove deprecated types.optionSet•••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 :)
| Silvan Mosberger | 2022-03-18 | 1 | -8/+0 |
| * | Merge pull request #156533 from hercules-ci/issue-146882-transparent-submodul...•••lib.modules: Let module declare options directly in bare submodule | Silvan Mosberger | 2022-03-16 | 1 | -7/+15 |
| |\ |
|
| | * | lib.modules: Inline a private function•••This should save about four calls per module.
| Robert Hensing | 2022-03-03 | 1 | -7/+7 |
| | * | lib.modules: Default shorthandOnlyDefinesConfig to true when null | Robert Hensing | 2022-03-03 | 1 | -1/+5 |
| | * | lib.modules: Make option injection work when shorthandOnlyDefinesConfig | Robert Hensing | 2022-03-03 | 1 | -1/+5 |
| | * | lib.types.submodule: Remove redundant isSubmodule attr | Robert Hensing | 2022-03-03 | 1 | -5/+0 |
| | * | lib.modules: Let module declare options directly in bare submodule•••... 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
| Robert Hensing | 2022-03-03 | 1 | -0/+5 |
| * | | Merge pull request #163443 from ncfavier/fix-types-package•••lib.types.package: only call toDerivation when necessary | Robert Hensing | 2022-03-11 | 1 | -2/+10 |
| |\ \ |
|
| | * | | lib.types.package: only call toDerivation when necessary•••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.
| Naïm Favier | 2022-03-11 | 1 | -2/+10 |
| | |/ |
|