1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
nixpkgs/lib/tests/modules
Robert Hensing 118bdf25a6 lib/modules: Allow an "anonymous" module with key in disabledModules
This makes the following work

    disabledModules = [ foo.nixosModules.bar ];

even if `bar` is not a path, but rather a module such as

    { key = "/path/to/foo#nixosModules.bar"; config = ...; }

By supporting this, the user will often be able to use the same syntax
for both importing and disabling a module. This is becoming more relevant
because flakes promote the use of attributes to reference modules. Not
all of these modules in flake attributes will be identifiable, but with
the help of a framework such as flake-parts, these attributes can be
guaranteed to be identifiable (by outPath + attribute path).
2023-03-01 15:03:44 +01:00
..
disable-recursive
functionTo lib/tests/modules: Test functionTo submodule merging too 2022-05-13 09:09:16 +02:00
types-anything
adhoc-freeformType-survives-type-merge.nix
alias-with-priority-can-override.nix
alias-with-priority.nix
attrsOf-conditional-check.nix
attrsOf-lazy-check.nix
declare-attrsOf.nix
declare-attrsOfSub-any-enable.nix
declare-bare-submodule-deep-option-duplicate.nix
declare-bare-submodule-deep-option.nix
declare-bare-submodule-nested-option.nix
declare-bare-submodule.nix
declare-coerced-value-unsound.nix
declare-coerced-value.nix
declare-either.nix
declare-enable-nested.nix
declare-enable.nix
declare-int-between-value.nix
declare-int-positive-value-nested.nix
declare-int-positive-value.nix
declare-int-unsigned-value.nix
declare-lazyAttrsOf.nix
declare-oneOf.nix
declare-set.nix
declare-submodule-via-evalModules.nix
declare-submoduleWith-modules.nix
declare-submoduleWith-noshorthand.nix
declare-submoduleWith-path.nix
declare-submoduleWith-shorthand.nix
declare-submoduleWith-special.nix
declare-variants.nix
default.nix
deferred-module-error.nix lib/modules: Throw earlier when module function does not return attrs 2022-06-14 23:23:41 +02:00
deferred-module.nix lib.deferredModule: Make it properly singular 2022-06-14 23:01:27 +02:00
define-_module-args-custom.nix
define-attrsOfSub-bar-enable.nix
define-attrsOfSub-bar.nix
define-attrsOfSub-foo-enable-force.nix
define-attrsOfSub-foo-enable-if.nix
define-attrsOfSub-foo-enable.nix
define-attrsOfSub-foo-force-enable.nix
define-attrsOfSub-foo-if-enable.nix
define-attrsOfSub-foo.nix
define-attrsOfSub-force-foo-enable.nix
define-attrsOfSub-if-foo-enable.nix
define-bare-submodule-values.nix
define-enable-abort.nix lib/modules: Add context to the "option does not exist" error 2022-12-02 11:06:53 +00:00
define-enable-force.nix
define-enable-throw.nix lib/modules: Add context to the "option does not exist" error 2022-12-02 11:06:53 +00:00
define-enable-with-custom-arg.nix
define-enable.nix
define-force-attrsOfSub-foo-enable.nix
define-force-enable.nix
define-if-attrsOfSub-foo-enable.nix
define-module-check.nix
define-option-dependently-nested.nix
define-option-dependently.nix
define-settingsDict-a-is-b.nix lib.types.deferredModule: Allow path-typed module references 2022-06-14 23:01:26 +02:00
define-shorthandOnlyDefinesConfig-true.nix
define-submoduleWith-noshorthand.nix
define-submoduleWith-shorthand.nix
define-value-int-negative.nix
define-value-int-positive.nix
define-value-int-zero.nix
define-value-list.nix
define-value-string-arbitrary.nix
define-value-string-bigint.nix
define-value-string-properties.nix
define-value-string.nix
define-variant.nix
disable-declare-enable.nix
disable-define-enable-string-path.nix lib.modules: support strings with absolute paths in disabledModules 2022-08-31 14:23:28 +02:00
disable-define-enable.nix
disable-enable-modules.nix
disable-module-bad-key.nix lib/modules: Allow an "anonymous" module with key in disabledModules 2023-03-01 15:03:44 +01:00
disable-module-with-key.nix lib/modules: Allow an "anonymous" module with key in disabledModules 2023-03-01 15:03:44 +01:00
disable-module-with-toString-key.nix lib/modules: Allow an "anonymous" module with key in disabledModules 2023-03-01 15:03:44 +01:00
doRename-basic.nix lib/tests/modules: Test doRename 2022-11-03 13:12:58 +01:00
doRename-warnings.nix lib/tests/modules: Test doRename 2022-11-03 13:12:58 +01:00
emptyValues.nix
extendModules-168767-imports.nix lib.types.submoduleWith: Avoid _key collisions after extendModules 2022-04-24 00:07:59 +02:00
freeform-attrsOf.nix
freeform-lazyAttrsOf.nix
freeform-nested.nix
freeform-str-dep-unstr.nix
freeform-submodules.nix
freeform-unstr-dep-str.nix
import-custom-arg.nix
import-from-store.nix
merge-module-with-key.nix lib/modules: Allow an "anonymous" module with key in disabledModules 2023-03-01 15:03:44 +01:00
optionTypeFile.nix
optionTypeMerging.nix
raw.nix
shorthand-meta.nix lib/modules: Fix meta duplication in shorthand syntax 2022-09-21 10:55:11 +01:00
submoduleFiles.nix lib/tests: Add submodule file propagation test 2022-06-14 17:01:58 +02:00