mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 07:04:17 +00:00
modules/home-manager: add warning about modulesPath
This commit is contained in:
parent
d2572315ca
commit
bfb5a678d2
1 changed files with 5 additions and 0 deletions
|
@ -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 "
|
||||
|
|
Loading…
Reference in a new issue