Add autoconfigure kitty with hyprland

This commit is contained in:
Florian RICHER 2024-05-06 00:29:28 +02:00
parent 431e5c8d7c
commit e7b79879bd

View file

@ -2,13 +2,23 @@
with lib; with lib;
{ {
options.homePrograms.kitty = { options.homePrograms.kitty = {
enable = mkEnableOption '' enable = mkOption {
Enable kitty with my custom configurations default = config.homePrograms.hyprland.enable; # Enable by default with hyprland to ensure kitty is installed with hyprland
''; example = true;
description = ''
Enable kitty with my custom configurations
'';
type = types.bool;
};
enableBlur = mkEnableOption '' enableBlur = mkOption {
Enable blur (Usefull to disable with hyprland) default = !config.homePrograms.hyprland.enable; # Disable by default if hyprland is enabled (Hyprland enable own blur)
''; example = true;
description = ''
Enable blur (Usefull to disable with hyprland)
'';
type = types.bool;
};
}; };
config = config =
let let
@ -25,7 +35,6 @@ with lib;
settings = lib.mkMerge [ settings = lib.mkMerge [
{ {
shell = "zsh";
disable_ligatures = "never"; disable_ligatures = "never";
sync_to_monitor = "yes"; # Avoid to update a lot sync_to_monitor = "yes"; # Avoid to update a lot
confirm_os_window_close = 0; # Disable close confirmation confirm_os_window_close = 0; # Disable close confirmation
@ -34,6 +43,7 @@ with lib;
} }
(lib.mkIf cfg.enableBlur { background_blur = "1"; }) (lib.mkIf cfg.enableBlur { background_blur = "1"; })
(lib.mkIf config.programs.zsh.enable { shell = "zsh"; })
]; ];
}; };
}; };