blob: 96be94c3519fa0ef766b061f2110941ba68a3f88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# Validates kitty shell option requires zsh to be enabled if explicitly configured
{ config, ... }:
let
cfg = config.terminal.kitty;
in
{
assertions = [
{
assertion =
!(cfg.enable && config.programs.kitty.settings.shell != null && !config.terminal.zsh.enable);
message = ''
terminal.kitty.enable has shell explicitly set to zsh but terminal.zsh.enable is not set.
Enable terminal.zsh or configure a different shell for kitty.
'';
}
];
}
|