desktop/plasma: fix 'cause stylix broke everything

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-04-07 14:12:35 +03:00
parent 566c25977b
commit 17b2c4b55d
2 changed files with 18 additions and 0 deletions

View File

@ -1,10 +1,12 @@
{
osConfig,
config,
pkgs,
lib,
...
}:
with lib; let
inherit (osConfig.module.stylix) theme;
cfg = config.desktop.plasma;
in {
options = {
@ -12,8 +14,23 @@ in {
mkEnableOption "enable plasma desktop";
};
config = mkIf cfg.enable {
stylix.targets.qt.enable = mkDefault false;
stylix.targets.kde.enable = mkDefault true;
home.packages = with pkgs; [
wl-clipboard-rs
];
gtk = {
enable = true;
iconTheme = {
name =
if config.stylix.polarity == "dark"
then "Papirus-Dark"
else "Papirus-Light";
package =
if (removeSuffix "-light" theme) == "nord"
then pkgs.papirus-nord
else pkgs.papirus-icon-theme;
};
};
};
}