-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Desktop: adding plasma6 to the stack
- Loading branch information
1 parent
706123f
commit 0444f0b
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
options, | ||
config, | ||
lib, | ||
pkgs, | ||
... | ||
}: let | ||
inherit (lib.attrsets) attrValues; | ||
inherit (lib.modules) mkIf; | ||
in { | ||
options.modules.desktop.plasma = let | ||
inherit (lib.options) mkEnableOption; | ||
in {enable = mkEnableOption "modern desktop environment";}; | ||
|
||
config = mkIf config.modules.desktop.plasma.enable { | ||
modules.desktop = { | ||
envProto = "wayland"; | ||
extensions.input-method = { | ||
enable = true; | ||
framework = "fcitx5"; | ||
}; | ||
}; | ||
|
||
programs.dconf.enable = true; | ||
|
||
services.xserver.desktopManager = { | ||
plasma6 = { | ||
enable = true; | ||
enableQt5Integration = false; | ||
excludePackages = attrValues { | ||
inherit (pkgs.kdePackages) konsole oxygen; | ||
}; | ||
}; | ||
defaultSession = "plasmawayland"; | ||
}; | ||
}; | ||
} |