mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
modules/nixos/themes: fix assertion
Whoops... brain fart. :/
This commit is contained in:
parent
2415514ab1
commit
d5c914f127
@ -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.";
|
||||
}];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user