blob: 97f1ba0e00d0f5f7f89d98a9d8aa149cc9e158e9 (
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.terminal.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.
'';
}
];
}
|