modules: register the base modules path

This is needed, for example, to support relative paths when disabling
modules.
This commit is contained in:
Robert Helgesson 2019-04-07 13:14:15 +02:00
parent 2c07829be2
commit f8b03f5750
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -23,6 +23,9 @@ let
modules = modules =
[ configuration ] [ configuration ]
++ (import ./modules.nix { inherit check lib pkgs; }); ++ (import ./modules.nix { inherit check lib pkgs; });
specialArgs = {
modulesPath = builtins.toString ./.;
};
}; };
module = showWarnings ( module = showWarnings (