diff options
| author | seth <[email protected]> | 2023-04-17 12:00:55 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-04-17 12:01:21 -0400 |
| commit | 92ca826539092f33c8e19a19c7a9ea0def2aece0 (patch) | |
| tree | c6ff98c3f645f189b559bc1a69904fec217a946c /modules/desktop/plasma | |
| parent | 98921a299be9f22bde9204e1fd05d0ea0fb0c6ed (diff) | |
move most configurations to modules
Diffstat (limited to 'modules/desktop/plasma')
| -rw-r--r-- | modules/desktop/plasma/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/desktop/plasma/default.nix b/modules/desktop/plasma/default.nix new file mode 100644 index 0000000..7434f52 --- /dev/null +++ b/modules/desktop/plasma/default.nix @@ -0,0 +1,32 @@ +{ + config, + lib, + pkgs, + ... +}: let + cfg = config.desktop.plasma; + inherit (lib) mkEnableOption mkIf; +in { + options.desktop.plasma.enable = mkEnableOption "enable plasma"; + + config = mkIf cfg.enable { + 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"; + }; +} |
