plasma: Small fixes

This commit is contained in:
PapaTutuWawa 2022-03-21 15:24:57 +01:00
parent 4552edb5f0
commit d8c7f5ff14

View File

@ -5,15 +5,28 @@ let
in { in {
options.ptw.programs.plasma = { options.ptw.programs.plasma = {
enable = lib.mkEnableOption "Enable KDE Plasma"; enable = lib.mkEnableOption "Enable KDE Plasma";
mobile = lib.mkEnableOption "Enable Plasma Mobile"; mobile = {
enable = lib.mkEnableOption "Enable Plasma Mobile";
};
wayland = {
enable = lib.mkOption {
default = true;
description = "Ignore NixOS 'recommendations' and use the Wayland session by default";
};
};
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
services.xserver.desktopManager.plasma5 = { services.xserver = {
desktopManager.plasma5 = {
enable = true; enable = true;
runUsingSystemd = true; runUsingSystemd = true;
supportDDC = true; supportDDC = true;
mobile.enable = cfg.mobile; mobile.enable = cfg.mobile.enable;
};
# See https://github.com/NixOS/nixpkgs/commit/a506f9c79700255c215dddb53455d5e2bed6c1af
displayManager.defaultSession = lib.mkIf cfg.wayland.enable "plasmawayland";
}; };
xdg.portal = { xdg.portal = {