default.nix (1108B)
1 { 2 lib, 3 pkgs, 4 5 style, 6 user, 7 ... 8 }: 9 { 10 config.home-manager.users.${user} = { 11 wayland.windowManager.hyprland.settings.bind = [ "$mod, Return, exec, uwsm app -- kitty" ]; 12 13 programs.kitty = { 14 enable = true; 15 font = { 16 name = style.fonts.mono.family; 17 size = 12; 18 package = pkgs.nerd-fonts.jetbrains-mono; 19 }; 20 settings = { 21 window_padding_width = 10; 22 disable_ligatures = false; 23 confirm_os_window_close = 0; 24 remember_window_size = false; 25 initial_window_width = "80c"; 26 initial_window_height = "24c"; 27 } 28 // (with style.colors; { 29 foreground = "#${fg.hex}"; 30 background = "#${bg.hex}"; 31 background_opacity = bg.a; 32 selection_foreground = "#${bg.hex}"; 33 selection_background = "#${fg.hex}"; 34 35 cursor = "#${fg.hex}"; 36 cursor_text_color = "#${bg.hex}"; 37 38 url_color = "#${url.hex}"; 39 }) 40 // builtins.mapAttrs (_: c: "#${c.hex}") ( 41 lib.getAttrs (builtins.genList (n: "color${toString n}") 16) style.colors 42 ); 43 }; 44 }; 45 }