2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
enableXWayland ? true,
|
|
|
|
enableWlrPortal ? true,
|
|
|
|
}:
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
security = {
|
|
|
|
polkit.enable = true;
|
|
|
|
pam.services.swaylock = {};
|
|
|
|
};
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
hardware.graphics.enable = lib.mkDefault true;
|
2024-06-05 15:53:02 +00:00
|
|
|
fonts.enableDefaultPackages = lib.mkDefault true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
programs = {
|
|
|
|
dconf.enable = lib.mkDefault true;
|
|
|
|
xwayland.enable = lib.mkDefault enableXWayland;
|
|
|
|
};
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
xdg.portal.wlr.enable = enableWlrPortal;
|
|
|
|
|
|
|
|
# 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-07-15 17:15:38 +00:00
|
|
|
}
|