Jump to content

KDE Plasma: Difference between revisions

From NixOS Wiki
Ben9986 (talk | contribs)
Basic installation instructions for KDE Plasma. Brief mention of themes and extensions in nixpkgs
 
Ben9986 (talk | contribs)
Added section on SDDM configuration options.
Line 23: Line 23:


=== Extensions and Themes ===
=== Extensions and Themes ===
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]
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].
 
== SDDM Configuration ==
Configuration of the SDDM login manager is done in the usual way through the NixOS module.
 
==== Example Configuration ====
{{File|3={config, pkgs, ... }:
{
<...>
  services.displayManager.sddm = {
    enable = true;
    theme = "breeze";
    wayland.enable = true;
    enableHidpi = true;
    settings = {
      Autologin = {
        Session = "plasma.desktop";
        User = "john";
      };
    };
  };
<...>
}|name=/etc/nixos/configuration.nix|lang=nix}}
Any options not directly configurable in the NixOS module can be passed to SDDM via: <syntaxhighlight lang="nixos">
services.displayManager.sddm.settings = { <...> };
</syntaxhighlight>
 
== References ==

Revision as of 21:54, 3 September 2025

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> ]; 

}

Extensions and Themes

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 Nixpkgs repo or by using search.nixos.org.

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/