Begin migrate to custom configuration
This commit is contained in:
parent
4d24fae830
commit
431e5c8d7c
8 changed files with 291 additions and 45 deletions
40
home/homePrograms/kitty.nix
Normal file
40
home/homePrograms/kitty.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
with lib;
|
||||
{
|
||||
options.homePrograms.kitty = {
|
||||
enable = mkEnableOption ''
|
||||
Enable kitty with my custom configurations
|
||||
'';
|
||||
|
||||
enableBlur = mkEnableOption ''
|
||||
Enable blur (Usefull to disable with hyprland)
|
||||
'';
|
||||
};
|
||||
config =
|
||||
let
|
||||
cfg = config.homePrograms.kitty;
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
|
||||
font = {
|
||||
name = "FiraCode Nerd Font";
|
||||
package = pkgs.fira-code-nerdfont;
|
||||
};
|
||||
|
||||
settings = lib.mkMerge [
|
||||
{
|
||||
shell = "zsh";
|
||||
disable_ligatures = "never";
|
||||
sync_to_monitor = "yes"; # Avoid to update a lot
|
||||
confirm_os_window_close = 0; # Disable close confirmation
|
||||
|
||||
background_opacity = "0.7";
|
||||
}
|
||||
|
||||
(lib.mkIf cfg.enableBlur { background_blur = "1"; })
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue