mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Desktop/Plasma] Only enable if desktop environment is plasma
This commit is contained in:
parent
2a0af6799f
commit
6e921c01c8
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue