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:
parent
fc3cd1e408
commit
c0d06189f2
1 changed files with 9 additions and 0 deletions
|
|
@ -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" = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue