From e3c51b488d9a0d924e6643012a3f3ca371f1d4cf Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Mon, 15 Nov 2021 23:28:01 +0100 Subject: [PATCH] modules: Add Plasma module --- modules/default.nix | 1 + modules/programs/plasma/default.nix | 30 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 modules/programs/plasma/default.nix diff --git a/modules/default.nix b/modules/default.nix index 96409e4..85fc6f6 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -22,6 +22,7 @@ ./programs/waybar ./programs/zsh ./programs/xournalpp + ./programs/plasma # Services ./services/kanshi diff --git a/modules/programs/plasma/default.nix b/modules/programs/plasma/default.nix new file mode 100644 index 0000000..2ccca46 --- /dev/null +++ b/modules/programs/plasma/default.nix @@ -0,0 +1,30 @@ +{ config, lib, pkgs, ... }: + +let + cfg = config.ptw.programs.plasma; +in { + options.ptw.programs.plasma = { + enable = lib.mkEnableOption "Enable KDE Plasma"; + }; + + config = lib.mkIf cfg.enable { + services.xserver.desktopManager.plasma5 = { + enable = true; + runUsingSystemd = true; + supportDDC = true; + }; + + xdg.portal = { + enable = true; + extraPortals = [ pkgs.xdg-desktop-portal-kde ]; + }; + + environment.systemPackages = with pkgs; [ + yakuake + libsForQt5.okular + libsForQt5.kdeconnect-kde + index-fm + kasts-git + ]; + }; +}