1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-28 17:38:33 +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 {
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 "