diff options
author | Erik Arvstedt <erik.arvstedt@gmail.com> | 2022-08-25 14:03:57 +0200 |
---|---|---|
committer | Erik Arvstedt <erik.arvstedt@gmail.com> | 2022-08-31 14:23:28 +0200 |
commit | e2cc36197053c087b16009750fd3e60029600e25 (patch) | |
tree | f4c4231d1f29da8ec740b70598a7d94e5ed7a3d1 /lib/tests/modules | |
parent | cbf9a129d273d203a98c2fefe8bda52af42ab5e3 (diff) |
lib.modules: support strings with absolute paths in `disabledModules`
This is particularly useful for disabling modules defined in a flake. Example: disabledModules = [ "${flake}/modules/mymodule.nix" ]; Previously, absolute string paths were internally prepended with `modulesPath`, which caused the module filtering to fail.
Diffstat (limited to 'lib/tests/modules')
-rw-r--r-- | lib/tests/modules/disable-define-enable-string-path.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tests/modules/disable-define-enable-string-path.nix b/lib/tests/modules/disable-define-enable-string-path.nix new file mode 100644 index 0000000000000..6429a6d6354ae --- /dev/null +++ b/lib/tests/modules/disable-define-enable-string-path.nix @@ -0,0 +1,5 @@ +{ lib, ... }: + +{ + disabledModules = [ (toString ./define-enable.nix) ]; +} |