{ lib, pkgs, config, flakeRoot, ... }: let username = config.defaultUser or "henrov"; extraConfigFile = "${flakeRoot}/generated/.config/kitty/extra.conf"; extraConfig = if builtins.pathExists extraConfigFile then builtins.readFile extraConfigFile else ""; in { ################################# # System-wide install ################################# environment.systemPackages = [ pkgs.kitty ]; ################################# # Home Manager ################################# home-manager.users = { "${username}" = { programs.kitty = { enable = true; settings = { confirm_os_window_close = 0; dynamic_background_opacity = true; enable_audio_bell = false; mouse_hide_wait = "-1.0"; window_padding_width = 10; background_opacity = "0.5"; background_blur = 5; }; extraConfig = '' ${extraConfig} # Theme include themes/Catppuccin-Mocha.conf ''; }; }; }; }