Skip to content

kvantum: install kvantum packages#8974

Open
claymorwan wants to merge 1 commit intonix-community:masterfrom
claymorwan:kvantum-packages
Open

kvantum: install kvantum packages#8974
claymorwan wants to merge 1 commit intonix-community:masterfrom
claymorwan:kvantum-packages

Conversation

@claymorwan
Copy link
Copy Markdown

Description

Kvantum theming won't actually work if kvantum isn't installed, and the kvantum hm module doesn't install it.
Addtionally, Qt5 apps won't be themed if the Qt5 version of kvantum isn't installed either
The changes from this PR are:

  • Added qt.kvantum.package (default: pkgs.kdePackages.qtstyleplugin-kvantum)
  • Enabling the module will install the package set in qt.kvantum.package.
  • Added qt.kvantum.qt5.enable(default: false), enabling it install the package set in qt.kvantum.qt5.package
  • Added qt.kvantum.qt5.package (default: pkgs.libsForQt5.qtstyleplugin-kvantum)

Checklist

  • Change is backwards compatible.

  • Code formatted with nix fmt or
    nix-shell -p treefmt nixfmt deadnix keep-sorted nixf-diagnose --run treefmt.

  • Code tested through nix run .#tests -- test-all or
    nix-shell --pure tests -A run.all.

  • Test cases updated/added. See example.

  • Commit messages are formatted like

    {component}: {description}
    
    {long description}
    

    See CONTRIBUTING for more information and recent commit messages for examples.

  • If this PR adds a new module

    • Added myself as module maintainer. See example.
    • Generate a news entry. See News
    • Basic tests added. See Tests
  • If this PR adds an exciting new feature or contains a breaking change.

    • Generate a news entry. See News

@bbigras
Copy link
Copy Markdown
Contributor

bbigras commented Mar 26, 2026

Any app I can help test this PR with?

@claymorwan
Copy link
Copy Markdown
Author

Any app I can help test this PR with?

as in app to theme ? well any qt6 and qt5 apps should do, personally i tried with prism launcher (qt6) and limo (qt5)

Comment on lines +40 to +48
qt5 = {
enable = mkEnableOption "Kvantum Qt5 support";
package = mkPackageOption pkgs.libsForQt5 "qtstyleplugin-kvantum" {
nullable = true;
extraDescription = ''
The package to use for Kvantum Qt5 support.
'';
};
};
Copy link
Copy Markdown
Collaborator

@khaneliman khaneliman Mar 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how does this differ from the style option already available in the qt options?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh i was not aware of this option, ig it works for people who wish to use kvantum paired with qtct like I do, I thought it'd be nice to have them seperate

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm struggling with the concept here. Sorry, brain might just be fried, but I'm trying to think of deduplication and least confusing UX. If we have options in the QT module for this and then we nest kvantum within the qt namespace, what is the goal of another nested qt option within.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well I want to give the user the choice wether they want kvantum to theme qt5 apps (which needs the qt5 version of kvantum to be installed) or not. Tho if you prefer I can just remove qt.kvantum.qt5 and make it so qt.kvantum.enable installs both the qt6 and qt5 version of kvantum.

Comment thread modules/misc/qt/kvantum.nix
@claymorwan claymorwan requested a review from khaneliman March 27, 2026 18:18
@claymorwan claymorwan force-pushed the kvantum-packages branch 2 times, most recently from 1935b23 to 8336664 Compare March 28, 2026 15:27
@claymorwan
Copy link
Copy Markdown
Author

Ok I had a lil of trouble with checking if both qt.kvantum.qt5.enable is true and qt.kvantum.qt5.package isn't null before installing it but I fixed it

Comment thread modules/misc/qt/kvantum.nix Outdated
@home-manager-ci home-manager-ci Bot requested a review from rycee April 8, 2026 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants