desktop/plasma: fix 'cause stylix broke everything
Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
@ -1,10 +1,12 @@
|
|||||||
{
|
{
|
||||||
|
osConfig,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
|
inherit (osConfig.module.stylix) theme;
|
||||||
cfg = config.desktop.plasma;
|
cfg = config.desktop.plasma;
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
@ -12,8 +14,23 @@ in {
|
|||||||
mkEnableOption "enable plasma desktop";
|
mkEnableOption "enable plasma desktop";
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
stylix.targets.qt.enable = mkDefault false;
|
||||||
|
stylix.targets.kde.enable = mkDefault true;
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
wl-clipboard-rs
|
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;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
stylix.targets.qt.enable = mkDefault false;
|
||||||
services = {
|
services = {
|
||||||
desktopManager.plasma6.enable = true;
|
desktopManager.plasma6.enable = true;
|
||||||
displayManager.sddm = {
|
displayManager.sddm = {
|
||||||
|
Reference in New Issue
Block a user