Add gdm gnome sddm kde

This commit is contained in:
DashieTM 2024-08-30 18:16:42 +02:00
parent 4cd9e462d8
commit 4123f8ccac
7 changed files with 183 additions and 3 deletions

24
modules/programs/kde.nix Normal file
View file

@ -0,0 +1,24 @@
{
lib,
options,
config,
...
}:
{
options.mods.kde = {
enable = lib.mkOption {
default = false;
example = true;
type = lib.types.bool;
description = "Enables the KDE desktop environment";
};
};
config = lib.mkIf config.mods.kde.enable (
lib.optionalAttrs (options ? services.desktopManager.plasma6) {
# apparently kde integration is bad -> kdeconfig is too much even for nix, can't blame them :)
services.desktopManager.plasma6.enable = true;
}
);
}