summary refs log tree commit diff
path: root/lib/tests/modules
Commit message (Collapse)AuthorAge
* lib/modules: Add syntactic sugar for config._module.freeformTypeSilvan Mosberger2020-08-14
| | | | | | | | | | | This introduces `freeformType` as a top-level module attribute, allowing definitions like { freeformType = ...; options = ...; config = ...; }
* lib/tests: Add tests for freeform modulesSilvan Mosberger2020-08-03
|
* lib/*: editorconfig fixeszowoq2020-07-31
|
* lib/tests: Check for nested option-dependent definitionsSilvan Mosberger2020-03-19
|
* Revert "lib/modules: Throw better error when definitions assign to an option ↵Silvan Mosberger2020-03-19
| | | | | | | | set" This reverts commit 15c873b486347e7861c64fb0b5a7852be9fc82e4. This was causing infinite recursion when depending on nested options
* Merge pull request #82751 from Infinisil/minor-module-improvementsRobert Hensing2020-03-18
|\ | | | | Minor module improvements
| * lib/modules: Throw better error when definitions assign to an option setSilvan Mosberger2020-03-18
| |
* | lib/modules: Test the ability for config to depend on options for compatibilityRobert Hensing2020-03-17
|/
* lib/tests: Add tests for attrsOf and lazyAttrsOfSilvan Mosberger2020-01-10
|
* lib/tests: Fix module testsSilvan Mosberger2020-01-10
| | | | | | | | | Fix the broken test in https://github.com/NixOS/nixpkgs/pull/77416 Apparently hydra uses `nix-build lib/tests/release.nix` to run all tests, where IFD isn't allowed. Fortunately we can get around this with builtins.toFile, which doesn't require IFD, but still can test the properties we want.
* lib/tests: Add test case for imports from derivationsSilvan Mosberger2020-01-10
|
* Merge pull request #76857 from Infinisil/recursive-disableModulesSilvan Mosberger2020-01-09
|\ | | | | Apply `disabledModules` recursively
| * lib/tests: Add tests for recursive disabledModulesSilvan Mosberger2020-01-09
| |
* | lib/tests: remove strictly loaOf tests and rebase on attrsOfrnhmjoj2020-01-06
|/
* lib/tests: Add submoduleWith testsSilvan Mosberger2020-01-02
|
* lib/types: Add oneOf, extension of either to a list of typesSilvan Mosberger2019-08-06
|
* Fix the documentation for the tests to reflect what is actually happening.(cdep)illabout2019-02-07
|
* lib/modules: Change mkAliasOptionModule to use the priority for the alias.(cdep)illabout2019-01-24
| | | | | | | | | | | | | | | This commit changes the `mkAliasOptionModule` function to make sure that the priority for the aliased option is propagated to the non-aliased option. This also affects the `mkRenamedOptionModule` function in a similar fashion. This also removes the `mkAliasOptionModuleWithPriority` function, since its functionality is now subsumed by `mkAliasOptionModule`. This change was recommended by @nbp: https://github.com/NixOS/nixpkgs/pull/53397#discussion_r245487432
* Add test that shows that the aliases are able to override options.(cdep)illabout2019-01-06
|
* lib/modules: Add a function to create an option alias that respects the priority(cdep)illabout2019-01-04
| | | | | | | | | | | | | | | | | This commit adds a function `mkAliasOptionModuleWithPriority`. This function will make an alias to an existing option and copy over the priority. This functionality is needed for PRs like #53041. In that case `nixos-generate-config` added an option to `hardware-configuration.nix` with `mkDefault`. That option was then changed and an alias created for the old name. The end user should be able to set the non-alias option in their `configuration.nix` and have everything work correctly. Without this function, the priority for the option won't be copied over correctly and the end-user will get a message saying they have the same option set to two different values.
* Add a failing test for mkAliasOptionModule.(cdep)illabout2019-01-04
|
* lib.types: fix loaOf behavior for long listsRobert Helgesson2018-05-07
| | | | | | | Assigning a list of 10 or more elements to an option having the type `loaOf a` produces a configuration value that is not honoring the order of the original list. This commit fixes this and a related issue arising when 10 or more lists are merged into this type of option.
* lib/types: Add coercedTo unsound testsSilvan Mosberger2018-05-06
|
* lib/types: add `ints.positive`.Profpatsch2017-11-05
| | | | For values that are positive, but cannot be 0.
* lib/types: update docs to match the new type namesProfpatsch2017-11-05
|
* modules: add support for module replacement with disabledModulesDaiderd Jordan2017-03-03
| | | | | | | | This is based on a prototype Nicolas B. Pierron worked on during a discussion we had at FOSDEM. A new version with a workaround for problems of the reverted original. Discussion: https://github.com/NixOS/nixpkgs/commit/3f2566689
* Revert "modules: add support for module replacement with disabledModules"Vladimír Čunát2017-03-01
| | | | | This reverts commit 3f2566689d14f1d7778d55ca807d1dad2f4695d1 for now. Evaluation of the tested job got broken, blocking nixos-unstable.
* use relative path for module testsDaiderd Jordan2017-02-28
|
* modules: add support for module replacement with disabledModulesDaiderd Jordan2017-02-28
| | | | | This is based on a prototype Nicolas B. Pierron worked on during a discussion we had at FOSDEM.
* module tests: add tests for coercedToNikolay Amiantov2017-02-02
|
* NixOS modules: Add error context on module arguments evaluation.Nicolas B. Pierron2015-07-14
|
* Add tests for the new module system improvements.Nicolas B. Pierron2015-03-16
|
* Issue #6161 - Add tests for NixOS modules.Nicolas B. Pierron2015-02-09