Need help configuring KDE Addon: plasma-panel-colorizer in ❄️

Hello all, has anyone successfully configured the KDE plasma-panel-colorizer in nix with the plasma-manager? I can get plasma-panel-colorizer https://store.kde.org/p/2130967 https://github.com/nix-community/plasma-manager/blob/trunk/modules/widgets/plasma-panel-colorizer.nix to appear with home.packages but its doesn’t show the theme presets.

I tried copying people’s configs off of GitHub to seeing if there’s would work, but when i would run them, I would get no error. I would get not change after git committing, home-manager switch and logging back into KDE Plasma. If you have any knowledge on configuring plasma-panel-colorizer on nix, can you please show what I am doing wrong here.


{
programs.plasma-panel-colorizer = {
  enable = true;
#   opts = { ... };
};
}

error:
       … while evaluating a branch condition
         at /nix/store/3w2nr2aq2gp76nb6lh1alx6h10mwvp5d-source/lib/lists.nix:141:18:
          140|       len = length list;
          141|       fold' = n: if n == len then nul else op (elemAt list n) (fold' (n + 1));
             |                  ^
          142|     in

       … while calling the 'length' builtin
         at /nix/store/3w2nr2aq2gp76nb6lh1alx6h10mwvp5d-source/lib/lists.nix:140:13:
          139|     let
          140|       len = length list;
             |             ^
          141|       fold' = n: if n == len then nul else op (elemAt list n) (fold' (n + 1));

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: The option `programs.plasma-panel-colorizer' does not exist. Definition values:
       - In `/nix/store/8rajhi4fav6vj5in8x910y9l9x89sn4z-source/modules/wm/kde-plasma/plasma-panel-colorizer.nix':
           {
             enable = true;
           }

Instead of this, have you tried just including the package from pkgs: plasma-panel-colorizer.

There is no module for it so you can’t enable it like that. But the readme has a NixOS section that helps: https://github.com/luisbocanegra/plasma-panel-colorizer?tab=readme-ov-file#nix-package

1 Like