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:
parent
115bb77f08
commit
b68be96dcb
1 changed files with 3 additions and 9 deletions
|
@ -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"
|
||||
}
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue