mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
targets/darwin: better error message
This commit is contained in:
@@ -35,7 +35,7 @@ in
|
||||
assertions = [
|
||||
{
|
||||
assertion = !config.targets.darwin.linkApps.enable;
|
||||
message = "This modules conflicts with `targets.darwin.linkApps`.";
|
||||
message = "`targets.darwin.copyApps.enable` conflicts with `targets.darwin.linkApps.enable`. Please disable one of them.";
|
||||
}
|
||||
(lib.hm.assertions.assertPlatform "targets.darwin.copyApps" pkgs lib.platforms.darwin)
|
||||
];
|
||||
|
||||
@@ -26,7 +26,7 @@ in
|
||||
assertions = [
|
||||
{
|
||||
assertion = !config.targets.darwin.copyApps.enable;
|
||||
message = "This modules conflicts with `targets.darwin.copyApps`.";
|
||||
message = "`targets.darwin.linkApps.enable` conflicts with `targets.darwin.copyApps.enable`. Please disable one of them.";
|
||||
}
|
||||
(lib.hm.assertions.assertPlatform "targets.darwin.linkApps" pkgs lib.platforms.darwin)
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user