This repository has been archived on 2025-10-08. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
nixos-config/options/host/window_managers.nix

56 lines
1.2 KiB
Nix

{
lib,
pkgs,
config,
...
}:
let
cfg = config.host.window_managers.kde;
in
{
options = {
host.window_managers.kde = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "KDE Clear configurations for host.";
};
sddm.enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "SDDM configurations for host.";
};
powerProfiles.enable = lib.mkOption {
type = lib.types.bool;
default = !config.device.laptop.battery.enable;
description = "Power Profiles Daemon configurations for host.";
};
};
};
config = lib.mkIf cfg.enable {
services.desktopManager.plasma6.enable = true;
environment.plasma6.excludePackages = with pkgs.kdePackages; [
kate
elisa
konsole
kdepim-runtime
plasma-browser-integration
];
environment.systemPackages = [
pkgs.wl-clipboard
pkgs.wayland-utils
]
++ lib.optional cfg.sddm.enable pkgs.kdePackages.sddm-kcm;
services.power-profiles-daemon.enable = cfg.powerProfiles.enable;
services.displayManager.sddm = lib.mkIf cfg.sddm.enable {
enable = true;
wayland.enable = true;
};
};
}