1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

kitty: assert can't enable shell integrations when mode is null

We use the mode within the script for each integration. Make sure the
user understands what they are doing.
This commit is contained in:
Austin Horstman 2025-02-04 16:19:49 -06:00
parent fc3cd1e408
commit c0d06189f2

View file

@ -204,6 +204,15 @@ in {
};
config = mkIf cfg.enable {
assertions = [{
assertion = !(cfg.shellIntegration.mode == null
&& (cfg.shellIntegration.enableBashIntegration
|| cfg.shellIntegration.enableFishIntegration
|| cfg.shellIntegration.enableZshIntegration));
message =
"Cannot enable shell integration when `programs.kitty.shellIntegration.mode` is `null`";
}];
home.packages = [ cfg.package ] ++ optionalPackage cfg.font;
xdg.configFile."kitty/kitty.conf" = {