3
0
Fork 0
forked from mirrors/nixpkgs

nixos/plasma5: Rename Plasma 5 desktop

- There is no such thing as KDE 5
This commit is contained in:
Thomas Tuegel 2017-02-25 14:43:13 -06:00
parent 8be4bd7416
commit f21d4d0015
No known key found for this signature in database
GPG key ID: 22CBF5249D4B4D59
3 changed files with 11 additions and 8 deletions

View file

@ -178,6 +178,9 @@ with lib;
(mkRenamedOptionModule [ "services" "nfs" "lockdPort" ] [ "services" "nfs" "server" "lockdPort" ])
(mkRenamedOptionModule [ "services" "nfs" "statdPort" ] [ "services" "nfs" "server" "statdPort" ])
# KDE Plasma 5
(mkRenamedOptionModule [ "services" "xserver" "desktopManager" "kde5" ] [ "services" "xserver" "desktopManager" "plasma5" ])
# Options that are obsolete and have no replacement.
(mkRemovedOptionModule [ "boot" "initrd" "luks" "enable" ] "")
(mkRemovedOptionModule [ "programs" "bash" "enable" ] "")

View file

@ -16,9 +16,9 @@ in
{
# Note: the order in which desktop manager modules are imported here
# determines the default: later modules (if enabled) are preferred.
# E.g., if KDE is enabled, it supersedes xterm.
# E.g., if Plasma 5 is enabled, it supersedes xterm.
imports = [
./none.nix ./xterm.nix ./xfce.nix ./kde5.nix ./lumina.nix
./none.nix ./xterm.nix ./xfce.nix ./plasma5.nix ./lumina.nix
./lxqt.nix ./enlightenment.nix ./gnome3.nix ./kodi.nix
];

View file

@ -5,16 +5,16 @@ with lib;
let
xcfg = config.services.xserver;
cfg = xcfg.desktopManager.kde5;
cfg = xcfg.desktopManager.plasma5;
inherit (pkgs) kdeApplications plasma5 libsForQt5 qt5 xorg;
inherit (pkgs) kdeWrapper kdeApplications plasma5 libsForQt5 qt5 xorg;
in
{
options = {
services.xserver.desktopManager.kde5 = {
services.xserver.desktopManager.plasma5 = {
enable = mkOption {
type = types.bool;
default = false;
@ -45,12 +45,12 @@ in
config = mkMerge [
(mkIf (cfg.extraPackages != []) {
environment.systemPackages = [ (libsForQt5.kdeWrapper cfg.extraPackages) ];
environment.systemPackages = [ (kdeWrapper cfg.extraPackages) ];
})
(mkIf (xcfg.enable && cfg.enable) {
services.xserver.desktopManager.session = singleton {
name = "Plasma 5";
name = "plasma5";
bgSupport = true;
start = ''
# Load PulseAudio module for routing support.
@ -163,7 +163,7 @@ in
++ lib.optional config.services.colord.enable colord-kde
++ lib.optionals config.services.samba.enable [ kdenetwork-filesharing pkgs.samba ];
services.xserver.desktopManager.kde5.extraPackages =
services.xserver.desktopManager.plasma5.extraPackages =
with kdeApplications; with plasma5;
[
khelpcenter