From 203f193fa2be57c0463f1eb0121288a2731da8b9 Mon Sep 17 00:00:00 2001 From: tdpeuter Date: Tue, 2 May 2023 21:13:51 +0200 Subject: [PATCH] Add basic plasma module --- nixos/modules/des/plasma/default.nix | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 nixos/modules/des/plasma/default.nix diff --git a/nixos/modules/des/plasma/default.nix b/nixos/modules/des/plasma/default.nix new file mode 100644 index 0000000..55c69bb --- /dev/null +++ b/nixos/modules/des/plasma/default.nix @@ -0,0 +1,32 @@ +{ config, lib, pkgs, ... }: + +{ + services.xserver = { + enable = true; + + displayManager.sddm = { + enable = true; + # https://discourse.nixos.org/t/plasma-wayland-session-not-available-from-sddm/13447/2 + settings.Wayland.SessionDir = "${pkgs.plasma5Packages.plasma-workspace}/share/wayland-sessions"; + }; + + desktopManager.plasma5 = { + enable = true; + useQtScaling = true; + + excludePackages = with pkgs.libsForQt5; [ + elisa + okular + khelpcenter + konsole + print-manager + plasma-systemmonitor + gwenview + ]; + }; + + excludePackages = with pkgs; [ + xterm + ]; + }; +}