aboutsummaryrefslogtreecommitdiffstats
path: root/modules/networking/impala/assertions.nix
blob: 6db3189590289baf76199f88ba8b0c3306f11977 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Validates kitty is enabled for impala desktop entry
{ config, ... }:
let
  cfg = config.networking.impala;
in
{
  assertions = [
    {
      assertion = !cfg.enable || config.terminal.kitty.enable;
      message = ''
        networking.impala is enabled but terminal.kitty.enable is not.
        impala's desktop entry requires kitty as the terminal launcher. Please enable terminal.kitty.
      '';
    }
  ];
}