Begin stabilize system module
This commit is contained in:
parent
edcbfaf379
commit
6163188786
24 changed files with 63 additions and 59 deletions
45
modules/home/kitty/default.nix
Normal file
45
modules/home/kitty/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.desktop.kitty;
|
||||
in
|
||||
{
|
||||
options.modules.desktop.kitty = {
|
||||
enable = mkEnableOption ''
|
||||
Enable kitty with my custom configurations
|
||||
'';
|
||||
|
||||
enableBlur = mkOption {
|
||||
default = !config.desktop.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 = mkIf cfg.enable {
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
|
||||
font = {
|
||||
name = "FiraCode Nerd Font";
|
||||
package = pkgs.fira-code-nerdfont;
|
||||
};
|
||||
|
||||
settings = lib.mkMerge [
|
||||
{
|
||||
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"; })
|
||||
(lib.mkIf config.programs.zsh.enable { shell = "zsh"; })
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue