Jump to content

KDE Plasma: Difference between revisions

From NixOS Wiki
Ben9986 (talk | contribs)
m Add mention of enableQt5Integration
Ben9986 (talk | contribs)
Redirect to existing KDE wiki page......
Tags: New redirect Visual edit
 
Line 1: Line 1:
KDE Plasma is a fast, customizable [[:Category:Desktop environment|desktop environment]] designed to be simple by default but powerful when needed. <ref>Official KDE Plasma promotional material https://kde.org/plasma-desktop/</ref>
#REDIRECT [[KDE]]KDE Plasma is a fast, customizable [[:Category:Desktop environment|desktop environment]] designed to be simple by default but powerful when needed. <ref>Official KDE Plasma promotional material https://kde.org/plasma-desktop/</ref>


== Installation ==
== Installation ==
Line 22: Line 22:
}|name=/etc/nixos/configuration.nix|lang=nix}}
}|name=/etc/nixos/configuration.nix|lang=nix}}


=== Extensions and Themes ===
== Configuration ==
Ordinarily, Plasma extensions and themes should be installed through the Plasma Settings application, though a small number have been packaged in Nixpkgs for convenience. These can be found in the [https://github.com/NixOS/nixpkgs/tree/nixos-unstable/pkgs/kde/third-party Nixpkgs repo] or by using [https://search.nixos.org/packages?channel=unstable&query=kdePackages+theme search.nixos.org].
All configuration of KDE Plasma should be done through the built in settings application. There are very few options in the NixOS module.
A small number of Plasma extensions and themes have been packaged in Nixpkgs for convenience and can be added in the usual way packages are installed. These can be found in the [https://github.com/NixOS/nixpkgs/tree/nixos-unstable/pkgs/kde/third-party Nixpkgs repo] or by using [https://search.nixos.org/packages?channel=unstable&query=kdePackages+theme search.nixos.org].
If you plan to use Qt 5 applications on Plasma 6, you should enable the Qt 5 integration. This allows theming to be more cohesive across Qt5 and Qt6 applications.<syntaxhighlight lang="nixos">
If you plan to use Qt 5 applications on Plasma 6, you should enable the Qt 5 integration. This allows theming to be more cohesive across Qt5 and Qt6 applications.<syntaxhighlight lang="nixos">
services.desktopManager.plasma6.enableQt5Integration = true;
services.desktopManager.plasma6.enableQt5Integration = true;

Latest revision as of 22:04, 3 September 2025

Redirect to:

KDE Plasma is a fast, customizable desktop environment designed to be simple by default but powerful when needed. [1]

Installation

Plasma Desktop

To install the Plasma desktop environment on NixOS, the following options should be added to your configuration.nix (or flake.nix if you so desire).

❄︎ /etc/nixos/configuration.nix
{ config, pkgs, ... }:
{

  # SDDM Display Manager
  services.displayManager.sddm.enable = true;

  # Plasma 5 (*deprecated* - unavailable after 25.05)
  services.xserver.desktopManager.plasma5.enable = true;

  # Plasma 6
  services.desktopManager.plasma6.enable = true;

  # Exclude certain default applications from being installed
  environment.plasma6.excludePackages = with pkgs; [ kdePackages.<package> ]; 

}

Configuration

All configuration of KDE Plasma should be done through the built in settings application. There are very few options in the NixOS module. A small number of Plasma extensions and themes have been packaged in Nixpkgs for convenience and can be added in the usual way packages are installed. These can be found in the Nixpkgs repo or by using search.nixos.org.

If you plan to use Qt 5 applications on Plasma 6, you should enable the Qt 5 integration. This allows theming to be more cohesive across Qt5 and Qt6 applications.

services.desktopManager.plasma6.enableQt5Integration = true;

SDDM Configuration

Configuration of the SDDM login manager is done in the usual way through the NixOS module.

Example Configuration

❄︎ /etc/nixos/configuration.nix
{config, pkgs, ... }:
{
<...>
  services.displayManager.sddm = {
    enable = true;
    theme = "breeze";
    wayland.enable = true;
    enableHidpi = true;
    settings = {
      Autologin = {
        Session = "plasma.desktop";
        User = "john";
      };
    };
  };
<...>
}

Any options not directly configurable in the NixOS module can be passed to SDDM via:

services.displayManager.sddm.settings = { <...> };

References

  1. Official KDE Plasma promotional material https://kde.org/plasma-desktop/