1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

eww: fix assertions

This commit is contained in:
Eveeifyeve 2024-12-06 23:56:31 +11:00 committed by GitHub
parent 115bb77f08
commit b68be96dcb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -98,16 +98,10 @@ in {
config = mkIf cfg.enable (mkMerge [
{
assertions =
let message = "You can have either yuck & scss or configDir enabled";
in [
assertions = [
{
assertion = !(cfg.scssConfig == null && cfg.configDir == null);
inherit message;
}
{
assertion = !(cfg.yuckConfig == null && cfg.configDir == null);
inherit message;
assertion = !(cfg.scssConfig == null && cfg.configDir == null) or !(cfg.yuckConfig == null && cfg.configDir == null);
message = "You can have either yuck & scss or configDir enabled"
}
];