From 485c482441e268c7890f947e5d4f0d6e64d8d522 Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 7 Mar 2024 14:32:12 -0500 Subject: nixos/plasma: don't use plasma 6 on < 24.05 --- modules/nixos/desktop/plasma/default.nix | 41 ++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 18 deletions(-) (limited to 'modules/nixos/desktop') 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 {} + ); } -- cgit v1.2.3