Catppuccin-nix: the soothing pastel theme, but for nix!

I don’t have qt5ct or qt6ct installed. Should I be using those over kvantum? I also don’t know how to get different versions of kvantum. Also, theme.nix is listed in home-manager.nixosModules.home-manager.modules

You have qt.platformTheme="qtct", so yes you need to have them installed. You have other options if you prefer those instead.

It’s just different packages. For NixOS 23.11 there is:

  • libsForQt5.qtstyleplugin-kvantum
  • qt6Packages.qtstyleplugin-kvantum

For NixOS unstable:

  • libsForQt5.qtstyleplugin-kvantum
  • kdePackages.qtstyleplugin-kvantum

This might not have any difference, however.

Did you try putting the contents of theme.nix in the main home.nix? It might not be imported properly. I have everything in one file, so I’m not sure if this is how to do this, but you can try putting it in home-manager.users.user.imports.

Can you just show me what you’re doing to get catppuccin themes in qt, so that I can copy off of you?

Sure, this is what I have:

NixOS module
            inputs.home-manager.nixosModules.home-manager
            {
              home-manager.useGlobalPkgs = true;
              home-manager.useUserPackages = true;
              home-manager.users.<user>.imports = [
                ./hosts/default/home.nix
                inputs.catppuccin.homeManagerModules.catppuccin #for other packages
              ];
              home-manager.extraSpecialArgs = { inherit inputs; };
            }
Inside "./hosts/default/home.nix"
  home.packages = with pkgs; [
    (catppuccin-kvantum.override {
      accent = "Blue";
      variant = "Macchiato";
    })
    libsForQt5.qtstyleplugin-kvantum
    libsForQt5.qt5ct
  ];

  qt = {
    enable = true;
    platformTheme = "qtct";
    style.name = "kvantum";
  };

  xdg.configFile."Kvantum/kvantum.kvconfig".source = (pkgs.formats.ini { }).generate "kvantum.kvconfig" {
    General.theme = "Catppuccin-Macchiato-Blue";
  };

Then in qt5ct and qt6ct I manually set kvantum as the theme. That’s it.

Also, I think it might be better if we moved this to a separate issue as it’s not related to catppuccin-nix.

1 Like