1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-09-29 17:57:28 +02:00

modules/home-manager: add warning about modulesPath

This commit is contained in:
Robert Helgesson 2017-11-02 10:32:25 +01:00
parent d2572315ca
commit bfb5a678d2
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -46,6 +46,11 @@ in
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
warnings = mkIf (cfg.modulesPath != null) [
("'programs.home-manager.modulesPath' is deprecated, "
+ "please use 'programs.home-manager.path")
];
assertions = [{ assertions = [{
assertion = cfg.path == null || cfg.modulesPath == null; assertion = cfg.path == null || cfg.modulesPath == null;
message = "Cannot simultaneously use " message = "Cannot simultaneously use "