Files
nixos-blueprint/modules/home/desktop/plasma/default.nix
unexplrd 4fdb88bca4 desktop/plasma: use gnome keyring
because it's used on every other desktop and signal client works only with it

Signed-off-by: unexplrd <unexplrd@linerds.us>
2025-05-05 13:27:08 +03:00

42 lines
855 B
Nix

{
osConfig,
config,
pkgs,
lib,
...
}:
with lib; let
inherit (osConfig.module.stylix) theme;
cfg = config.desktop.plasma;
in {
options = {
desktop.plasma.enable =
mkEnableOption "enable plasma desktop";
};
config = mkIf cfg.enable {
stylix.targets.qt.enable = mkDefault false;
stylix.targets.kde.enable = mkDefault true;
services.gnome-keyring = {
enable = true;
components = ["secrets"];
};
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;
};
};
};
}