mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08: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:
@@ -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" = {
|
||||
|
||||
Reference in New Issue
Block a user