treewide: remove Plasma 5 support dropped upstream (#1860)
Remove Plasma 5 support dropped in upstream commit [1] ("treewide: drop
Qt5 versions of Plasma, Gear, Deepin, Maui, friends (#430298)").
[1]: 2053850561
Closes: https://github.com/nix-community/stylix/issues/1861
Link: https://github.com/nix-community/stylix/pull/1860
Reviewed-by: https://github.com/SuperSandro2000
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
parent
2355da455d
commit
f47c0edcf7
2 changed files with 4 additions and 16 deletions
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
services = {
|
||||
displayManager.sddm.enable = true;
|
||||
|
||||
xserver = {
|
||||
enable = true;
|
||||
desktopManager.plasma5.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -22,18 +22,16 @@ in
|
|||
|
||||
config =
|
||||
let
|
||||
inherit (config.services.xserver.desktopManager) plasma5 lxqt;
|
||||
inherit (config.services.xserver.desktopManager) lxqt;
|
||||
inherit (config.services.desktopManager) gnome plasma6;
|
||||
in
|
||||
lib.mkIf (config.stylix.enable && config.stylix.targets.qt.enable) {
|
||||
stylix.targets.qt.platform =
|
||||
if gnome.enable && !(plasma5.enable || plasma6.enable || lxqt.enable) then
|
||||
if gnome.enable && !(plasma6.enable || lxqt.enable) then
|
||||
"gnome"
|
||||
else if plasma5.enable && !(gnome.enable || plasma6.enable || lxqt.enable) then
|
||||
"kde"
|
||||
else if plasma6.enable && !(gnome.enable || plasma5.enable || lxqt.enable) then
|
||||
else if plasma6.enable && !(gnome.enable || lxqt.enable) then
|
||||
"kde6"
|
||||
else if lxqt.enable && !(gnome.enable || plasma5.enable || plasma6.enable) then
|
||||
else if lxqt.enable && !(gnome.enable || plasma6.enable) then
|
||||
"lxqt"
|
||||
else
|
||||
"qtct";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue