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

**URL:** https://discourse.nixos.org/t/catppuccin-nix-the-soothing-pastel-theme-but-for-nix/42915
**Category:** Announcements
**Created:** [April 7, 2024, 9:09pm UTC](https://discourse.nixos.org/t/catppuccin-nix-the-soothing-pastel-theme-but-for-nix/42915 "2024-04-07T21:09:11Z")
**Posts on this page:** 4
**Page:** 2

<div class="post-metadata">

### Author: ![IQubic](https://discourse.nixos.org/user_avatar/discourse.nixos.org/iqubic/32/16992_2.png) [@IQubic](https://discourse.nixos.org/u/IQubic)
#### Post date: [April 19, 2024, 6:54pm UTC](https://discourse.nixos.org/t/catppuccin-nix-the-soothing-pastel-theme-but-for-nix/42915/21 "2024-04-19T18:54:14Z")

</div>

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`

---

<div class="post-metadata">

### Author: ![eljamm](https://discourse.nixos.org/user_avatar/discourse.nixos.org/eljamm/32/16466_2.png) [@eljamm](https://discourse.nixos.org/u/eljamm)
#### Post date: [April 19, 2024, 7:21pm UTC](https://discourse.nixos.org/t/catppuccin-nix-the-soothing-pastel-theme-but-for-nix/42915/22 "2024-04-19T19:21:10Z")

</div>

> [@IQubic](#):
>
> I don’t have qt5ct or qt6ct installed. Should I be using those over kvantum?

You have `qt.platformTheme="qtct"`, so yes you need to have them installed. You have [other options](https://mynixos.com/home-manager/option/qt.platformTheme) if you prefer those instead.

> [@IQubic](#):
>
> I also don’t know how to get different versions of kvantum.

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.

> [@IQubic](#):
>
> Also, `theme.nix` is listed in `home-manager.nixosModules.home-manager.modules`

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`.

---

<div class="post-metadata">

### Author: ![IQubic](https://discourse.nixos.org/user_avatar/discourse.nixos.org/iqubic/32/16992_2.png) [@IQubic](https://discourse.nixos.org/u/IQubic)
#### Post date: [April 19, 2024, 7:22pm UTC](https://discourse.nixos.org/t/catppuccin-nix-the-soothing-pastel-theme-but-for-nix/42915/23 "2024-04-19T19:22:57Z")

</div>

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

---

<div class="post-metadata">

### Author: ![eljamm](https://discourse.nixos.org/user_avatar/discourse.nixos.org/eljamm/32/16466_2.png) [@eljamm](https://discourse.nixos.org/u/eljamm)
#### Post date: [April 19, 2024, 7:31pm UTC](https://discourse.nixos.org/t/catppuccin-nix-the-soothing-pastel-theme-but-for-nix/42915/24 "2024-04-19T19:31:38Z")

</div>

Sure, this is what I have:

> **NixOS module**
>
> ```nix
> 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"**
>
> ```auto
> 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.

[Previous page](https://discourse.nixos.org/t/catppuccin-nix-the-soothing-pastel-theme-but-for-nix/42915.md?page=1)
