forked from auxolotl/templates
41 lines
794 B
Nix
41 lines
794 B
Nix
|
# Enables the KDE desktop environment.
|
||
|
{
|
||
|
pkgs,
|
||
|
config,
|
||
|
lib,
|
||
|
...
|
||
|
}:
|
||
|
|
||
|
let
|
||
|
cfg = config.aux.ui.desktops.kde;
|
||
|
in
|
||
|
{
|
||
|
options = {
|
||
|
aux.ui.desktops.kde = {
|
||
|
enable = lib.mkEnableOption (lib.mdDoc "Enables the KDE Desktop Environment.");
|
||
|
useX11 = lib.mkEnableOption (lib.mdDoc "Uses X11 instead of Wayland.");
|
||
|
};
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
aux.ui.desktops.enable = true;
|
||
|
|
||
|
services = {
|
||
|
displayManager.sddm.enable = true;
|
||
|
desktopManager.plasma6.enable = true;
|
||
|
|
||
|
xserver.displayManager = lib.mkIf cfg.useX11 {
|
||
|
defaultSession = "plasmaX11";
|
||
|
sddm.wayland.enable = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
# Enable Gnome integration
|
||
|
qt = {
|
||
|
enable = true;
|
||
|
platformTheme = "gnome";
|
||
|
style = "adwaita-dark";
|
||
|
};
|
||
|
};
|
||
|
}
|