From 17b2c4b55dc34ad6317699ea7bd33fa1418c0e7b Mon Sep 17 00:00:00 2001 From: unexplrd Date: Mon, 7 Apr 2025 14:12:35 +0300 Subject: [PATCH] desktop/plasma: fix 'cause stylix broke everything Signed-off-by: unexplrd --- modules/home/desktop/plasma/default.nix | 17 +++++++++++++++++ modules/nixos/desktop/plasma.nix | 1 + 2 files changed, 18 insertions(+) diff --git a/modules/home/desktop/plasma/default.nix b/modules/home/desktop/plasma/default.nix index f96bc9e..afecb9a 100644 --- a/modules/home/desktop/plasma/default.nix +++ b/modules/home/desktop/plasma/default.nix @@ -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; + }; + }; }; } diff --git a/modules/nixos/desktop/plasma.nix b/modules/nixos/desktop/plasma.nix index 889f7d7..681f907 100644 --- a/modules/nixos/desktop/plasma.nix +++ b/modules/nixos/desktop/plasma.nix @@ -16,6 +16,7 @@ in { }; }; config = mkIf cfg.enable { + stylix.targets.qt.enable = mkDefault false; services = { desktopManager.plasma6.enable = true; displayManager.sddm = {