From b71b897e3a22d7dc98305bb19eb8dac5adf79711 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Sun, 16 Apr 2023 13:52:59 +0200 Subject: [PATCH] Add initial plasma module --- home/modules/plasma.nix | 44 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 41 insertions(+), 3 deletions(-) diff --git a/home/modules/plasma.nix b/home/modules/plasma.nix index 2fdc6509..ad68522d 100644 --- a/home/modules/plasma.nix +++ b/home/modules/plasma.nix @@ -1,7 +1,7 @@ -# TODO: KDE Connect config -# TODO: Plasma Configuration (https://github.com/pjones/plasma-manager) +# TODO: Use this: https://github.com/pjones/plasma-manager { config, + nixosConfig, lib, mylib, pkgs, @@ -12,9 +12,47 @@ with mylib.modules; let cfg = config.modules.plasma; in { options.modules.plasma = { + enable = mkEnableOpt "Plasma Desktop"; }; config = mkIf cfg.enable { - home.packages = with pkgs; []; + assertions = [ + { + assertion = nixosConfig.services.xserver.desktopManager.plasma5.enable; + message = "Can't enable Plasma module when Plasma is not enabled!"; + } + ]; + + home.packages = with pkgs; [ + # libsForQt5.qt5ct # QT Configurator for unintegrated desktops + libsForQt5.ark + libsForQt5.discover + libsForQt5.dolphin + libsForQt5.dolphin-plugins + libsForQt5.ffmpegthumbs + libsForQt5.gwenview + libsForQt5.kalendar + libsForQt5.kate + libsForQt5.kcalc + libsForQt5.kcharselect + libsForQt5.kcolorpicker + libsForQt5.kdenetwork-filesharing + libsForQt5.kdegraphics-thumbnailers + libsForQt5.kfind + libsForQt5.kgpg + libsForQt5.kmail + libsForQt5.kompare # Can't be used as git merge tool, but more integrated than kdiff3 + libsForQt5.ksystemlog + libsForQt5.kwallet # TODO: How does this integrate with hyprland? + libsForQt5.kwalletmanager # TODO: Same as above + libsForQt5.kwrited + libsForQt5.okular + libsForQt5.plasma-systemmonitor + libsForQt5.spectacle + libsForQt5.skanlite + ]; + + # Autostart KRunner Daemon + home.file.".config/autostart/krunner.desktop".source = ../../config/autostart/krunner.desktop; }; }