KDE Optional Packages

The services.desktopManager.plasma6.enable NixOS Option currently does install KDE Plasma and some other KDE Applications, but some optional packages are missing

For example, KDE Spectacle is missing the optional tesseract and its language data packages dependencies

I haven’t found any option on NixOS, Home Manager, or plasma-manager to enable optional packages to install, nor any documentation about it (while the environment.plasma6.excludePackages NixOS option exists)

For now, it seems that one needs to install each optional packages manually (i.e. using environment.systemPackages)

Do you think optional packages options like .enableOcr for KDE Spectacle, or even a general enableOptionalFeatures option would be great additions?

1 Like

I think it is good like it is especially as the messages are descriptive.
Like if you are on dolphine and want to use advanced search it says that you are missing kfind.
A quick search and an add pkgs.kdePackages.kfind to your config later it works.

I think the maintainers have done a good job to choose which packages are included as the default.

I did not say they should be added by default, but that a way to add those optional package should be streamlined

Another option would be to add this kind of information in the wiki

Documentation is fine, but it’s not enough imo

This is being tracked here Plasma 6.6's Spectacle OCR not working despite tesseract being installed. · Issue #491913 · NixOS/nixpkgs · GitHub

@Sandro this is an adjacent issue but not related to the feature request of providing an option enabling optional packages

It exists an option to disable some optional packages. Currently, you need to look in the plasma 6 module to see which packages can be disabled and it can be used like:

plasma6.excludePackages =  with pkgs.kdePackages; [
  kwin-x11
];

I’m asking for more integrated ways to include optional packages

Please see