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 {
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 "