targets/darwin: better error message

This commit is contained in:
Mio 2025-10-24 19:36:53 +11:00 committed by Austin Horstman
parent 5c71d4a730
commit 82b58f3820
2 changed files with 2 additions and 2 deletions

View file

@ -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)
];

View file

@ -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)
];