Unable to change Kitty icon

I’m trying to change the icon of kitty, yet rofi -show drun still shows the old one.

I tried copying the solution from here:

{ ... }:
{
  nixpkgs.overlays = [
    (final: prev: {
      kitty = prev.kitty.overrideAttrs (o: {
        postInstall =
          (o.postInstall or "")
          + ''
            cp -f ${./kitty-dark.png} $out/share/icons/hicolor/256x256/apps/kitty.png
            rm -f $out/share/icons/hicolor/scalable/apps/kitty.svg
          '';
      });
    })
  ];
  programs.kitty = {
    enable = true;
    settings = {
      font_family = "JetBrainsMono Nerd Font Mono";
      bold_font = "JetBrainsMono Nerd Font Mono Extra Bold";
      bold_italic_font = "JetBrainsMono Nerd Font Mono Extra Bold Italic";
      enable_audio_bell = false;
    };
    keybindings = {
      "ctrl+shift+f" = "launch --type=overlay --stdin-source=@screen_scrollback fzf --no-sort --no-mouse --exact -i";
    };
    theme = "Catppuccin-Mocha";
  };
}

I can successfully run home-manager switch, but the icon is not updated.

~/.config/home-manager/modules/kitty ls      
default.nix kitty-dark.png

Did you relogin or reboot yet?

Yes, multiple times, yet it hasn’t changed… :confused: I’ve tried this a bit ago and decided to post it on here for further help

I think this is more of an issue with rofi and your system’s icon theme than with kitty itself as the default icon also comes with that icon theme. If you change the theme (which also needs to be installed), you’ll see that the icon changes. For example:

rofi -show drun -show-icons -icon-theme "Papirus"

I’m on Hyprland and I do not have an icon theme “equipped”. I tried wofi too but it also displays the old icon (wofi --allow-images --show drun).