aboutsummaryrefslogtreecommitdiffstats
path: root/modules/web/chawan/assertions.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/web/chawan/assertions.nix')
-rw-r--r--modules/web/chawan/assertions.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/web/chawan/assertions.nix b/modules/web/chawan/assertions.nix
index 93b5fab..3d5bab8 100644
--- a/modules/web/chawan/assertions.nix
+++ b/modules/web/chawan/assertions.nix
@@ -1,9 +1,12 @@
# Validates kitty is enabled for chawan desktop entry
{ config, ... }:
+let
+ cfg = config.web.chawan;
+in
{
assertions = [
{
- assertion = !config.web.chawan.enable || config.terminal.kitty.enable;
+ assertion = !cfg.enable || config.terminal.kitty.enable;
message = ''
web.chawan is enabled but terminal.kitty.enable is not.
chawan's desktop entry requires kitty as the terminal launcher. Please enable terminal.kitty.