From f8b03f5750679d6686eefa60d5de8cfd932b8997 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sun, 7 Apr 2019 13:14:15 +0200 Subject: [PATCH] modules: register the base modules path This is needed, for example, to support relative paths when disabling modules. --- modules/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/default.nix b/modules/default.nix index 4d0e9cc7..9f6404ff 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -23,6 +23,9 @@ let modules = [ configuration ] ++ (import ./modules.nix { inherit check lib pkgs; }); + specialArgs = { + modulesPath = builtins.toString ./.; + }; }; module = showWarnings (