summaryrefslogtreecommitdiff
path: root/modules/nixos/desktop/plasma
diff options
context:
space:
mode:
authorseth <[email protected]>2023-05-08 00:21:41 -0400
committerseth <[email protected]>2023-05-08 00:21:41 -0400
commit9cedd06b8589a5d39a7a85e2efe646a8edebac53 (patch)
tree8884a1238b0586396bc403098e23e78505ab514e /modules/nixos/desktop/plasma
parent589c80eb1bcaf76b4a1a7e6f9cdd725fdb04e063 (diff)
modules: merge base and nixos
Diffstat (limited to 'modules/nixos/desktop/plasma')
-rw-r--r--modules/nixos/desktop/plasma/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/nixos/desktop/plasma/default.nix b/modules/nixos/desktop/plasma/default.nix
new file mode 100644
index 0000000..84960f3
--- /dev/null
+++ b/modules/nixos/desktop/plasma/default.nix
@@ -0,0 +1,32 @@
+{
+ config,
+ lib,
+ pkgs,
+ ...
+}: let
+ cfg = config.getchoo.desktop.plasma;
+ inherit (lib) mkEnableOption mkIf;
+in {
+ options.getchoo.desktop.plasma.enable = mkEnableOption "enable plasma";
+
+ config = mkIf cfg.enable {
+ getchoo.desktop.enable = true;
+
+ environment.systemPackages = with pkgs; [pinentry-qt];
+
+ services.xserver = {
+ displayManager.sddm.enable = true;
+ desktopManager.plasma5 = {
+ enable = true;
+ excludePackages = with pkgs.libsForQt5; [
+ khelpcenter
+ plasma-browser-integration
+ print-manager
+ ];
+ useQtScaling = true;
+ };
+ };
+
+ programs.gnupg.agent.pinentryFlavor = "qt";
+ };
+}