mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01: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 {
|
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 "
|
||||||
|
|
Loading…
Reference in a new issue