catppuccin / nix

❄️ Soothing pastel theme for Nix
https://nix.catppuccin.com/
MIT License
412 stars 53 forks source link

qt.style.catppuccin.apply doesn't do anything for me #372

Open WildPowerHammer opened 1 week ago

WildPowerHammer commented 1 week ago

I trying to make qt apps use catppuccin and i have this in my home.nix

  home.catppuccin = {
    enable = true;
    accent = "blue";
    flavor = "macchiato";
    pointerCursor = {
      #size = 24;
      enable = true;
      accent = "dark";
    };
  }; 
  qt = {
    platformTheme.name = "kvantum";
    style = {
      name = "kvantum";
      catppuccin = {
        apply = true;
        enable = true;
        accent = "blue";
        flavor = "frappe";
      };
    };
  };

Unfortunately I still do not have a Kvantum folder in ~/.config, after looking at kvantum.nix I see no reason why it should not work.

For now, I will just recreate this from kvantum.nix

    xdg.configFile = {
      "Kvantum/${themeName}".source = "${theme}/share/Kvantum/${themeName}";
      "Kvantum/kvantum.kvconfig" = lib.mkIf cfg.apply {
        text = ''
          [General]
          theme=${themeName}
        '';
      };
    };

But I would be very grateful if someone could tell me why it doesn't work on its own.