KDE: Difference between revisions

Phobos (talk | contribs)
m Reverted display manager to SDDM
Tags: Mobile edit Mobile web edit Advanced mobile edit Visual edit
Phobos (talk | contribs)
m Added back Plasma Login Manager
Tags: Mobile edit Mobile web edit Advanced mobile edit Visual edit
Line 5: Line 5:
To use KDE Plasma, add this to your configuration.nix:
To use KDE Plasma, add this to your configuration.nix:


{{file|3=# Enable Plasma  
{{file|3={
services.desktopManager.plasma6.enable = true;
  # Enable Plasma  
  services.desktopManager.plasma6.enable = true;


# Default display manager for Plasma
  # Default display manager for Plasma
services.displayManager.sddm = {
  services.displayManager.sddm = {
  enable = true;
    enable = true;
    
    
# To use Wayland (Experimental for SDDM)
  # To use Wayland (Experimental for SDDM)
  wayland.enable = true;
    wayland.enable = true;
};
  };


# Optionally enable xserver
  # Optionally enable xserver
services.xserver.enable = true;|name=/etc/nixos/configuration.nix|lang=nix}}
  services.xserver.enable = true;
}|name=configuration.nix|lang=nix}}


== Configuration ==
== Configuration ==
Line 27: Line 29:
Optional packages: [https://github.com/NixOS/nixpkgs/blob/nixos-24.11/nixos/modules/services/desktop-managers/plasma6.nix#L159-L174 plasma6.nix]
Optional packages: [https://github.com/NixOS/nixpkgs/blob/nixos-24.11/nixos/modules/services/desktop-managers/plasma6.nix#L159-L174 plasma6.nix]


<syntaxHighlight lang=nix>
{{File|3={
environment.plasma6.excludePackages = with pkgs.kdePackages; [
  environment.plasma6.excludePackages = with pkgs.kdePackages; [
  plasma-browser-integration
    plasma-browser-integration
  konsole
    konsole
  elisa
    elisa
];
  ];
</syntaxHighlight>
}|name=configuration.nix|lang=nix}}
 
'''Plasma Login Manager'''
 
[https://github.com/KDE/plasma-login-manager Plasma Login Manager] is currently only available in unstable. If you are on unstable you can enable it with the following configuration.
 
{{File|3={
  services.displayManager.plasma-login-manager = {
    enable = true;
  };
}|name=configuration.nix|lang=nix}}


=== Default Wayland/X11 session ===
=== Default Wayland/X11 session ===
Line 39: Line 51:
Plasma 6 runs on Wayland by default. To launch an X11 session by default:
Plasma 6 runs on Wayland by default. To launch an X11 session by default:


<syntaxhighlight lang="nix">
{{File|3=
services.displayManager.defaultSession = "plasmax11";
  services.displayManager.defaultSession = "plasmax11";
</syntaxhighlight>
}|name=configuration.nix|lang=nix}}


== Troubleshooting ==
== Troubleshooting ==