From d6a630e86487542e322946fd7d5dab6a37a3354c Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Tue, 6 Oct 2026 02:17:47 +0530 Subject: chore: some minor changes and refactoring --- modules/terminal/kitty/assertions.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 modules/terminal/kitty/assertions.nix (limited to 'modules/terminal/kitty/assertions.nix') 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. + ''; + } + ]; +} -- cgit v1.2.3