gui/kde: use plasma6 on unstable machines
This commit is contained in:
parent
d100cfdbff
commit
4d88c69a60
23
gui/kde.nix
23
gui/kde.nix
@ -1,17 +1,21 @@
|
|||||||
{ config
|
{ config
|
||||||
, lib
|
, lib
|
||||||
, pkgs
|
, isUnstable
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
let
|
|
||||||
inherit (pkgs.libsForQt5) callPackage;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
options = { kde = { enable = lib.mkEnableOption "Enable KDE desktop."; }; };
|
options = { kde = { enable = lib.mkEnableOption "Enable KDE desktop."; }; };
|
||||||
|
|
||||||
config = lib.mkIf config.kde.enable {
|
config = lib.mkIf config.kde.enable {
|
||||||
services.xserver.displayManager.sddm.enable = true;
|
services.xserver =
|
||||||
services.xserver.desktopManager.plasma5.enable = true;
|
if isUnstable then {
|
||||||
|
desktopManager.plasma6.enable = true;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
desktopManager.plasma5.enable = true;
|
||||||
|
} // {
|
||||||
|
displayManager.sddm.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
# Listen for KDE Connect connections on the tailnet
|
# Listen for KDE Connect connections on the tailnet
|
||||||
networking.firewall.interfaces = {
|
networking.firewall.interfaces = {
|
||||||
@ -21,11 +25,6 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
programs.kdeconnect.enable = true;
|
||||||
(callPackage ../pkgs/tile-gaps.nix { })
|
|
||||||
libsForQt5.bismuth
|
|
||||||
plasma5Packages.kdeconnect-kde
|
|
||||||
waynergy
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user