aboutsummaryrefslogtreecommitdiffstats
path: root/modules/web/chawan/assertions.nix
blob: 3d5bab8bd5df02ca2630c76e19d0b1e3c42e1ff8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Validates kitty is enabled for chawan desktop entry
{ config, ... }:
let
  cfg = config.web.chawan;
in
{
  assertions = [
    {
      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.
      '';
    }
  ];
}