From 6e921c01c800b4d43706f256df1ffba3aff5b03a Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Wed, 15 Mar 2023 09:29:38 +0100 Subject: [PATCH] [Desktop/Plasma] Only enable if desktop environment is plasma --- desktop/plasma.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/desktop/plasma.nix b/desktop/plasma.nix index 16cb2fc..9339e37 100644 --- a/desktop/plasma.nix +++ b/desktop/plasma.nix @@ -3,7 +3,7 @@ with lib; let cfg = config.aviallon.desktop; in { - config = mkIf cfg.enable { + config = mkIf (cfg.enable && (cfg.environment == "plasma")) { # Enable the Plasma 5 Desktop Environment. services.xserver.desktopManager.plasma5 = { enable = true; @@ -54,10 +54,11 @@ in { plasma-pa ark kolourpaint + krdc ]; xdg.portal = { - enable = mkDefault true; + enable = mkDefault true; extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];