summaryrefslogtreecommitdiff
path: root/modules/nixos/desktop/plasma/default.nix
blob: 84960f35ec5ecab367b7c23ab01c2a6192524388 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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";
  };
}