nixos-configuration/modules/desktop/kde.nix

61 lines
1.1 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-11 19:16:26 +02:00
desktopCfg = config.my.desktop;
cfg = desktopCfg.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 {
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
];
plasma5.excludePackages = with pkgs.libsForQt5; [
elisa
gwenview
okular
khelpcenter
];
};
2023-09-09 13:36:21 +02:00
programs = {
dconf.enable = true;
partition-manager.enable = true;
};
2023-09-09 15:11:49 +02:00
home-manager.users = {
2023-09-11 19:16:26 +02:00
vinzenz = lib.mkIf desktopCfg.vinzenz.enable applyKdeUserSettings;
ronja = lib.mkIf desktopCfg.ronja.enable applyKdeUserSettings;
2023-09-09 13:36:21 +02:00
};
};
}