From bfb5a678d20c774417760a97556f08043674ac66 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Thu, 2 Nov 2017 10:32:25 +0100 Subject: [PATCH] modules/home-manager: add warning about `modulesPath` --- modules/programs/home-manager.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/programs/home-manager.nix b/modules/programs/home-manager.nix index 0d6d5f00..724a19ae 100644 --- a/modules/programs/home-manager.nix +++ b/modules/programs/home-manager.nix @@ -46,6 +46,11 @@ in }; config = mkIf cfg.enable { + warnings = mkIf (cfg.modulesPath != null) [ + ("'programs.home-manager.modulesPath' is deprecated, " + + "please use 'programs.home-manager.path") + ]; + assertions = [{ assertion = cfg.path == null || cfg.modulesPath == null; message = "Cannot simultaneously use "