2024-05-30 07:01:10 +00:00
|
|
|
{
|
|
|
|
lib,
|
2024-09-30 12:07:42 +00:00
|
|
|
pkgs,
|
2024-06-03 03:57:17 +00:00
|
|
|
enableXWayland ? true,
|
|
|
|
enableWlrPortal ? true,
|
2024-09-30 12:07:42 +00:00
|
|
|
enableGtkPortal ? true,
|
2024-05-30 07:01:10 +00:00
|
|
|
}:
|
2023-05-15 11:45:09 +00:00
|
|
|
|
2024-05-22 16:18:09 +00:00
|
|
|
{
|
|
|
|
security = {
|
|
|
|
polkit.enable = true;
|
|
|
|
pam.services.swaylock = {};
|
|
|
|
};
|
2023-05-15 11:45:09 +00:00
|
|
|
|
2024-05-22 16:18:09 +00:00
|
|
|
programs = {
|
|
|
|
dconf.enable = lib.mkDefault true;
|
2024-06-03 03:57:17 +00:00
|
|
|
xwayland.enable = lib.mkDefault enableXWayland;
|
2024-05-22 16:18:09 +00:00
|
|
|
};
|
2023-05-15 11:45:09 +00:00
|
|
|
|
2024-08-16 13:11:13 +00:00
|
|
|
services.graphical-desktop.enable = true;
|
2024-07-17 13:24:59 +00:00
|
|
|
|
2024-06-03 03:57:17 +00:00
|
|
|
xdg.portal.wlr.enable = enableWlrPortal;
|
2024-09-30 12:07:42 +00:00
|
|
|
xdg.portal.extraPortals = lib.mkIf enableGtkPortal [
|
|
|
|
pkgs.xdg-desktop-portal-gtk
|
|
|
|
];
|
2024-06-01 17:00:19 +00:00
|
|
|
|
|
|
|
# Window manager only sessions (unlike DEs) don't handle XDG
|
|
|
|
# autostart files, so force them to run the service
|
|
|
|
services.xserver.desktopManager.runXdgAutostartIfNone = lib.mkDefault true;
|
2023-05-15 11:45:09 +00:00
|
|
|
}
|