From f36491c92269d3e1dd241e67c292af762ac498c3 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Thu, 24 Sep 2026 19:16:14 +0530 Subject: refactor: some more minor refactoring --- modules/web/chromium/assertions.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/web/chromium/assertions.nix') 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."; } ]; -- cgit v1.2.3