Anonymous user
KDE: Difference between revisions
Added information for using KDE Plasma 6
imported>Abowen m (KDE 6) |
imported>Matthias Thym (Added information for using KDE Plasma 6) |
||
Line 9: | Line 9: | ||
services.xserver.displayManager.sddm.enable = true; | services.xserver.displayManager.sddm.enable = true; | ||
services.xserver.desktopManager.plasma5.enable = true; | services.xserver.desktopManager.plasma5.enable = true; | ||
# services.xserver.desktopManager.plasma6.enable = true; | # KDE Plasma 6 is now available on unstable | ||
# services.xserver.desktopManager.plasma6.enable = true; | |||
</syntaxHighlight> | </syntaxHighlight> | ||
=== Excluding some KDE Plasma applications from the default install === | === Excluding some KDE Plasma applications from the default install === | ||
==== Plasma 5 ==== | |||
Not all applications that come pre-installed with the KDE Plasma desktop environment are desirable for everyone to have on their machines. There's a way to edit configuration.nix to exclude some [https://github.com/NixOS/nixpkgs/blob/nixos-23.11/nixos/modules/services/x11/desktop-managers/plasma5.nix#L275-L284 optional packages], for example as follows: | Not all applications that come pre-installed with the KDE Plasma desktop environment are desirable for everyone to have on their machines. There's a way to edit configuration.nix to exclude some [https://github.com/NixOS/nixpkgs/blob/nixos-23.11/nixos/modules/services/x11/desktop-managers/plasma5.nix#L275-L284 optional packages], for example as follows: | ||
Line 18: | Line 21: | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
environment.plasma5.excludePackages = with pkgs.libsForQt5; [ | environment.plasma5.excludePackages = with pkgs.libsForQt5; [ | ||
plasma-browser-integration | |||
konsole | |||
oxygen | |||
]; | |||
</syntaxHighlight> | |||
==== Plasma 6 ==== | |||
<syntaxHighlight lang=nix> | |||
environment.plasma6.excludePackages = with pkgs.kdePackages; [ | |||
plasma-browser-integration | plasma-browser-integration | ||
konsole | konsole | ||
Line 74: | Line 87: | ||
=== Launch KDE in Wayland session === | === Launch KDE in Wayland session === | ||
==== Plasma 5 ==== | |||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
Line 79: | Line 94: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
==== | ==== Plasma 6 ==== | ||
It's possible to launch sddm in | For KDE Plasma 6, the defaults have changed. KDE Plasma 6 runs on Wayland with the default session set to <code>plasma</code>. | ||
If you want to use the X11 session as your default session, change it to <code>plasmax11</code>. | |||
<syntaxHighlight lang=nix> | |||
services.xserver.displayManager.defaultSession = "plasma"; | |||
</syntaxHighlight> | |||
==== Launch SDDM in Wayland too ==== | |||
It's possible to launch sddm in Wayland too to try to avoid running an X server. | |||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
Line 88: | Line 111: | ||
=== Plasma-Manager === | === Plasma-Manager === | ||
{{note| [https://github.com/pjones/plasma-manager Plasma-Manager] is not matured yet and currently unofficial }} | {{note| [https://github.com/pjones/plasma-manager Plasma-Manager] is not matured yet and currently unofficial }} | ||
On default the plasma configuration can be handeld like on [https://wiki.archlinux.org/title/KDE traditional systems]. | On default the plasma configuration can be handeld like on [https://wiki.archlinux.org/title/KDE traditional systems]. |