kde: add decorationTheme option (#2168)

Link: https://github.com/nix-community/stylix/pull/2168

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
Ian Ressa 2026-01-30 09:22:30 -05:00 committed by GitHub
parent d60d37e02f
commit aad90ca763
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -176,6 +176,7 @@ let
mergeWithImage
{
kwinrc."org.kde.kdecoration2".library = cfg.decorations;
kwinrc."org.kde.kdecoration2".theme = cfg.decorationTheme;
plasmarc.Theme.name = cfg.applicationStyle;
kdeglobals = {
@ -355,6 +356,20 @@ in
imperatively applying the window decoration via the System Settings app.
'';
};
decorationTheme = lib.mkOption {
type = lib.types.str;
default = "";
description = ''
The theme name for the window decoration.
You probably need to set this if you are targeting a custom theme (i.e.
installed manually or from the "Get New..." menu).
See the `theme` key in the `org.kde.kdecoration2` section of
`$HOME/.config/kwinrc` after imperatively applying the window decoration
via the System Settings app.
'';
};
widgetStyle = lib.mkOption {
type = lib.types.str;
default = "Breeze";