{
config,
lib,
pkgs,
...
}: let
cfg = config.roles.plasma;
in {
options.roles.plasma = {
enable = lib.mkEnableOption "KDE Plasma";
};
config = lib.mkIf cfg.enable {
services.displayManager = {
defaultSession = "plasma";
sddm = {
enable = true;
wayland.enable = true;
};
};
services.desktopManager.plasma6.enable = true;
environment.plasma6.excludePackages = with pkgs.kdePackages; [
konsole
];
};
}