[Desktop/Plasma] Only enable if desktop environment is plasma

This commit is contained in:
Antoine Viallon 2023-03-15 09:29:38 +01:00
parent 2a0af6799f
commit 6e921c01c8
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -3,7 +3,7 @@ with lib;
let let
cfg = config.aviallon.desktop; cfg = config.aviallon.desktop;
in { in {
config = mkIf cfg.enable { config = mkIf (cfg.enable && (cfg.environment == "plasma")) {
# Enable the Plasma 5 Desktop Environment. # Enable the Plasma 5 Desktop Environment.
services.xserver.desktopManager.plasma5 = { services.xserver.desktopManager.plasma5 = {
enable = true; enable = true;
@ -54,6 +54,7 @@ in {
plasma-pa plasma-pa
ark ark
kolourpaint kolourpaint
krdc
]; ];
xdg.portal = { xdg.portal = {