nixos/modules/kde.nix
2023-07-15 09:30:18 +08:00

30 lines
673 B
Nix

inputs:
{
config =
{
services.xserver =
{
enable = true;
displayManager.sddm =
{
enable = true;
settings.General =
{
DisplayServer = "wayland";
GreeterEnvironment = "QT_WAYLAND_SHELL_INTEGRATION=layer-shell";
CompositorCommand = "weston";
};
};
desktopManager.plasma5.enable = true;
};
environment =
{
sessionVariables."GTK_USE_PORTAL" = "1";
systemPackages = [ inputs.pkgs.libsForQt5.qtstyleplugin-kvantum inputs.pkgs.weston ];
};
xdg.portal.extraPortals = with inputs.pkgs; [ xdg-desktop-portal-gtk xdg-desktop-portal-wlr ];
programs.xwayland.enable = true;
programs.kdeconnect.enable = true;
};
}