gui/kde: use plasma6 on unstable machines

This commit is contained in:
Aaron Bieber 2024-02-29 08:14:45 -07:00
parent d100cfdbff
commit 4d88c69a60
No known key found for this signature in database

View File

@ -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
];
}; };
} }