Add autoconfigure kitty with hyprland
This commit is contained in:
parent
431e5c8d7c
commit
e7b79879bd
1 changed files with 17 additions and 7 deletions
|
@ -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"; })
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue