nixos/modules/desktop/plasma/default.nix

42 lines
1 KiB
Nix
Raw Normal View History

2024-05-25 01:32:48 +02:00
{ config, pkgs, lib, ... }:
with lib;
let
2024-05-25 23:51:37 +02:00
cfg = config.modules.system.plasma;
2024-05-25 01:32:48 +02:00
in
{
2024-05-25 23:51:37 +02:00
options.modules.system.plasma = {
2024-05-25 01:32:48 +02:00
enable = mkEnableOption ''
2024-05-25 23:51:37 +02:00
Enable plasma with my custom configurations
2024-05-25 01:32:48 +02:00
'';
};
config = mkIf cfg.enable {
# Enable the X11 windowing system.
services.xserver.enable = true;
# Enable the KDE Plasma Desktop Environment.
services.displayManager = {
sddm.enable = true;
defaultSession = "plasma";
};
services.desktopManager.plasma6.enable = true;
programs.kdeconnect.enable = true;
environment.systemPackages = with pkgs; with kdePackages; [
krfb # Use by kdeconnect for virtualmonitorplugin "krfb-virtualmonitor"
discover
# Usefull for automatic informations collect software like KDE
vulkan-tools # For vulkaninfo command
wayland-utils # For wayland-info command
glxinfo
clinfo
];
# Uncomment when kwin is available in nixpkgs and NVIDIA 555
nixpkgs.overlays = [
(import ../overlays/kwin)
];
};
}