nixos-configuration/modules/desktop/kde.nix

63 lines
1.2 KiB
Nix
Raw Normal View History

2023-09-09 13:36:21 +02:00
{
config,
pkgs,
lib,
...
2023-09-09 14:57:55 +02:00
}: let
2023-09-09 13:36:21 +02:00
cfg = config.my.kde;
2023-09-09 15:11:49 +02:00
# applyKdeUserSettings = {
# #home = {
# # packages = with pkgs; [
# # ];
# #};
# services.kdeconnect = {
# enable = true;
# indicator = true;
# };
# };
2023-09-09 13:36:21 +02:00
in {
options.my.kde = {
enable = lib.mkEnableOption "KDE desktop";
};
config = lib.mkIf cfg.enable {
2023-09-09 15:44:15 +02:00
my.desktop.enable = true;
2023-09-09 13:36:21 +02:00
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
];
environment.plasma5.excludePackages = with pkgs.libsForQt5; [
elisa
gwenview
okular
khelpcenter
];
programs = {
dconf.enable = true;
partition-manager.enable = true;
};
2023-09-09 15:11:49 +02:00
home-manager.users = {
#vinzenz = lib.mkIf config.my.home.vinzenz.enable applyKdeUserSettings;
#ronja = lib.mkIf config.my.home.ronja.enable applyKdeUserSettings;
2023-09-09 13:36:21 +02:00
};
};
}