Skip to content

Commit 8c3aa5a

Browse files
committed
kde5: add enableQt4Support option
1 parent c9146d7 commit 8c3aa5a

3 files changed

Lines changed: 16 additions & 10 deletions

File tree

nixos/modules/installer/cd-dvd/installation-cd-graphical-kde.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ with lib;
1818
autoLogin = true;
1919
};
2020

21-
desktopManager.kde5.enable = true;
21+
desktopManager.kde5 = {
22+
enable = true;
23+
enableQt4Support = false;
24+
};
2225

2326
# Enable touchpad support for many laptops.
2427
synaptics.enable = true;

nixos/modules/services/x11/desktop-managers/kde5.nix

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ in
2222
description = "Enable the Plasma 5 (KDE 5) desktop environment.";
2323
};
2424

25+
enableQt4Support = mkOption {
26+
type = types.bool;
27+
default = true;
28+
description = ''
29+
Enable support for Qt 4-based applications. Particularly, install the
30+
Qt 4 version of the Breeze theme and a default backend for Phonon.
31+
'';
32+
};
33+
2534
};
2635

2736
};
@@ -105,7 +114,7 @@ in
105114
kde5.sonnet
106115
kde5.threadweaver
107116

108-
kde5.breeze
117+
kde5.breeze-qt5
109118
kde5.kactivitymanagerd
110119
kde5.kde-cli-tools
111120
kde5.kdecoration
@@ -160,6 +169,8 @@ in
160169
# frameworkintegration was split with plasma-integration in Plasma 5.6
161170
++ lib.optional (lib.hasAttr "plasma-integration" kde5) kde5.plasma-integration
162171

172+
++ lib.optionals cfg.enableQt4Support [ kde5.breeze-qt4 pkgs.phonon-backend-gstreamer ]
173+
163174
# Optional hardware support features
164175
++ lib.optional config.hardware.bluetooth.enable kde5.bluedevil
165176
++ lib.optional config.networking.networkmanager.enable kde5.plasma-nm

pkgs/desktops/kde-5/plasma/default.nix

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,6 @@ let
4444
inherit (srcs.breeze) src version;
4545
};
4646
breeze-qt5 = callPackage ./breeze-qt5.nix {};
47-
breeze =
48-
let
49-
version = (builtins.parseDrvName breeze-qt5.name).version;
50-
in
51-
symlinkJoin {
52-
name = "breeze-${version}";
53-
paths = map (pkg: pkg.out or pkg) [ breeze-gtk breeze-qt4 breeze-qt5 ];
54-
};
5547
breeze-grub = callPackage ./breeze-grub.nix {};
5648
breeze-plymouth = callPackage ./breeze-plymouth {};
5749
kactivitymanagerd = callPackage ./kactivitymanagerd.nix {};

0 commit comments

Comments
 (0)