2024-05-28 10:12:33 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.modules.system.desktop.plasma;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.modules.system.desktop.plasma = {
|
|
|
|
enable = mkEnableOption ''
|
|
|
|
Enable plasma with my custom configurations
|
|
|
|
'';
|
2024-09-16 10:12:21 +02:00
|
|
|
|
|
|
|
enableWallpaperEngine = mkEnableOption ''
|
|
|
|
Enable wallpaper engine plugin for plasma
|
|
|
|
'';
|
2024-11-09 19:56:09 +01:00
|
|
|
|
|
|
|
enableSddm = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
description = "Enable sddm with custom plasma";
|
|
|
|
default = true;
|
|
|
|
};
|
2024-05-28 10:12:33 +02:00
|
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
# Enable the X11 windowing system.
|
|
|
|
services.xserver.enable = true;
|
|
|
|
|
|
|
|
# Enable the KDE Plasma Desktop Environment.
|
2025-01-29 20:00:37 +01:00
|
|
|
services.displayManager.sddm.enable = cfg.enableSddm;
|
2024-05-28 10:12:33 +02:00
|
|
|
services.desktopManager.plasma6.enable = true;
|
|
|
|
|
|
|
|
programs.kdeconnect.enable = true;
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; with kdePackages; [
|
|
|
|
krfb # Use by kdeconnect for virtualmonitorplugin "krfb-virtualmonitor"
|
|
|
|
discover
|
2024-09-15 18:56:15 +02:00
|
|
|
kgpg
|
|
|
|
yakuake
|
2025-02-18 18:35:03 +01:00
|
|
|
] ++ lib.optionals cfg.enableWallpaperEngine [ wallpaper-engine-plugin ];
|
2024-05-28 10:12:33 +02:00
|
|
|
};
|
2024-05-31 12:15:48 +02:00
|
|
|
}
|