nixpkgs/lib/tests/modules/disable-define-enable-string-path.nix
Erik Arvstedt e2cc361970
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.
2022-08-31 14:23:28 +02:00

6 lines
75 B
Nix

{ lib, ... }:
{
disabledModules = [ (toString ./define-enable.nix) ];
}