modules/home-manager: add warning about modulesPath
This commit is contained in:
parent
d2572315ca
commit
bfb5a678d2
|
@ -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