diff options
Diffstat (limited to 'modules/terminal/kitty/assertions.nix')
| -rw-r--r-- | modules/terminal/kitty/assertions.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/terminal/kitty/assertions.nix b/modules/terminal/kitty/assertions.nix new file mode 100644 index 0000000..97f1ba0 --- /dev/null +++ b/modules/terminal/kitty/assertions.nix @@ -0,0 +1,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. + ''; + } + ]; +} |
