aboutsummaryrefslogtreecommitdiffstats
path: root/modules/web/chromium/assertions.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/web/chromium/assertions.nix')
-rw-r--r--modules/web/chromium/assertions.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/web/chromium/assertions.nix b/modules/web/chromium/assertions.nix
index 79a9ba1..e999780 100644
--- a/modules/web/chromium/assertions.nix
+++ b/modules/web/chromium/assertions.nix
@@ -1,9 +1,12 @@
# Validates chromium sub-options require the main module to be enabled
{ config, ... }:
+let
+ cfg = config.web.chromium;
+in
{
assertions = [
{
- assertion = !config.web.chromium.use-opengl || config.web.chromium.enable;
+ assertion = !cfg.use-opengl || cfg.enable;
message = "web.chromium.use-opengl requires web.chromium.enable.";
}
];