aboutsummaryrefslogtreecommitdiffstats
path: root/modules/web
diff options
context:
space:
mode:
Diffstat (limited to 'modules/web')
-rw-r--r--modules/web/chromium/assertions.nix10
-rw-r--r--modules/web/chromium/default.nix1
2 files changed, 11 insertions, 0 deletions
diff --git a/modules/web/chromium/assertions.nix b/modules/web/chromium/assertions.nix
new file mode 100644
index 0000000..465ebbd
--- /dev/null
+++ b/modules/web/chromium/assertions.nix
@@ -0,0 +1,10 @@
+# Validates chromium sub-options require the main module to be enabled
+{ config, ... }:
+{
+ assertions = [
+ {
+ assertion = !config.web.chromium.useOpenGL || config.web.chromium.enable;
+ message = "web.chromium.useOpenGL requires web.chromium.enable.";
+ }
+ ];
+}
diff --git a/modules/web/chromium/default.nix b/modules/web/chromium/default.nix
index 7901ad6..1e3608c 100644
--- a/modules/web/chromium/default.nix
+++ b/modules/web/chromium/default.nix
@@ -6,6 +6,7 @@
}:
{
imports = [
+ ./assertions.nix
./browserpass.nix
./extensions
];