dot

NixOS dotfiles
git clone https://git.echoz.io/dot.git
Log | Files | Refs

default.nix (1341B)


      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       package = pkgs.kitty.overrideAttrs (old: {
     16         patches = (old.patches or [ ]) ++ [ ./wheel-zoom.patch ];
     17       });
     18       font = {
     19         name = style.fonts.mono.family;
     20         size = 12;
     21         package = pkgs.nerd-fonts.jetbrains-mono;
     22       };
     23       settings = {
     24         window_padding_width = 10;
     25         disable_ligatures = false;
     26         confirm_os_window_close = 0;
     27         remember_window_size = false;
     28         initial_window_width = "80c";
     29         initial_window_height = "24c";
     30       }
     31       // (with style.colors; {
     32         foreground = "#${fg.hex}";
     33         background = "#${bg.hex}";
     34         background_opacity = bg.a;
     35         selection_foreground = "#${bg.hex}";
     36         selection_background = "#${fg.hex}";
     37 
     38         cursor = "#${fg.hex}";
     39         cursor_text_color = "#${bg.hex}";
     40 
     41         url_color = "#${url.hex}";
     42       })
     43       // builtins.mapAttrs (_: c: "#${c.hex}") (
     44         lib.getAttrs (builtins.genList (n: "color${toString n}") 16) style.colors
     45       );
     46       extraConfig = ''
     47         mouse_map ctrl+shift+middle press ungrabbed change_font_size all 0
     48       '';
     49     };
     50   };
     51 }