From d5c914f127aa6f896e6f160b181e512e9a97107c Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Fri, 4 Feb 2022 20:43:42 +0800 Subject: [PATCH] modules/nixos/themes: fix assertion Whoops... brain fart. :/ --- modules/nixos/themes/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nixos/themes/default.nix b/modules/nixos/themes/default.nix index 738e002f..59848304 100644 --- a/modules/nixos/themes/default.nix +++ b/modules/nixos/themes/default.nix @@ -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."; }]; };