modules/nixos/themes: fix assertion

Whoops... brain fart. :/
This commit is contained in:
Gabriel Arazas 2022-02-04 20:43:42 +08:00
parent 2415514ab1
commit d5c914f127

View File

@ -21,7 +21,7 @@ in {
assertions = [{
assertion =
let enabledThemes = lib.countAttrs (_: theme: theme.enable) cfg.themes;
in cfg.disableLimit && (enabledThemes < 2);
in cfg.disableLimit || (enabledThemes <= 1);
message = "Can't have more than one theme enabled at any given time.";
}];
};