[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
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
];