mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-18 18:40:14 +01:00
47 lines
863 B
Nix
47 lines
863 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: let
|
|
isEnabled = config.my.desktop.enableKde;
|
|
in {
|
|
options.my.desktop.enableKde = lib.mkEnableOption "KDE desktop";
|
|
|
|
config = lib.mkIf isEnabled {
|
|
my.desktop.enable = true;
|
|
|
|
services = {
|
|
# Enable the KDE Plasma Desktop Environment.
|
|
xserver = {
|
|
desktopManager.plasma5.enable = true;
|
|
|
|
displayManager = {
|
|
sddm.enable = true;
|
|
defaultSession = "plasmawayland";
|
|
};
|
|
};
|
|
};
|
|
|
|
environment = {
|
|
systemPackages = with pkgs; [
|
|
libsForQt5.kate
|
|
libsForQt5.kalk
|
|
];
|
|
|
|
plasma5.excludePackages = with pkgs.libsForQt5; [
|
|
elisa
|
|
gwenview
|
|
okular
|
|
khelpcenter
|
|
];
|
|
};
|
|
|
|
programs = {
|
|
dconf.enable = true;
|
|
partition-manager.enable = true;
|
|
kdeconnect.enable = true;
|
|
};
|
|
};
|
|
}
|