mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
e2cc361970
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.
5 lines
75 B
Nix
5 lines
75 B
Nix
{ lib, ... }:
|
|
|
|
{
|
|
disabledModules = [ (toString ./define-enable.nix) ];
|
|
}
|