summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseth <[email protected]>2024-03-07 14:32:12 -0500
committerseth <[email protected]>2024-03-07 14:32:12 -0500
commit485c482441e268c7890f947e5d4f0d6e64d8d522 (patch)
tree0cb9c427e68d2610f5803434f27dd47ace15e9e0
parent7d5df70f6c0ae2de73d00158e929839b9eb7ddc4 (diff)
nixos/plasma: don't use plasma 6 on < 24.05
-rw-r--r--modules/nixos/desktop/plasma/default.nix41
1 files changed, 23 insertions, 18 deletions
diff --git a/modules/nixos/desktop/plasma/default.nix b/modules/nixos/desktop/plasma/default.nix
index d84e651..a84d2a6 100644
--- a/modules/nixos/desktop/plasma/default.nix
+++ b/modules/nixos/desktop/plasma/default.nix
@@ -8,25 +8,30 @@
in {
options.desktop.plasma.enable = lib.mkEnableOption "Plasma desktop";
- config = lib.mkIf cfg.enable {
- environment = {
- plasma6.excludePackages = with pkgs.libsForQt5; [
- khelpcenter
- plasma-browser-integration
- print-manager
- ];
- };
-
- services.xserver = {
- displayManager.sddm = {
- enable = true;
- wayland.enable = true;
+ config = lib.mkIf cfg.enable (
+ # this is bad, i don't care
+ if (lib.versionAtLeast lib.version "24.05pre-git")
+ then {
+ environment = {
+ plasma6.excludePackages = with pkgs.libsForQt5; [
+ khelpcenter
+ plasma-browser-integration
+ print-manager
+ ];
};
- desktopManager.plasma6 = {
- enable = true;
- enableQt5Integration = true;
+ services.xserver = {
+ displayManager.sddm = {
+ enable = true;
+ wayland.enable = true;
+ };
+
+ desktopManager.plasma6 = {
+ enable = true;
+ enableQt5Integration = true;
+ };
};
- };
- };
+ }
+ else {}
+ );
}