modules: register the base modules path

This is needed, for example, to support relative paths when disabling
modules.

(cherry picked from commit f8b03f5750)
This commit is contained in:
Robert Helgesson 2019-04-07 13:14:15 +02:00
parent 69851e4c35
commit 5c1d10497d
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

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