mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
25 lines
543 B
Nix
25 lines
543 B
Nix
{
|
|
lib,
|
|
enableXWayland ? true,
|
|
enableWlrPortal ? true,
|
|
}:
|
|
|
|
{
|
|
security = {
|
|
polkit.enable = true;
|
|
pam.services.swaylock = {};
|
|
};
|
|
|
|
programs = {
|
|
dconf.enable = lib.mkDefault true;
|
|
xwayland.enable = lib.mkDefault enableXWayland;
|
|
};
|
|
|
|
services.graphical-desktop.enable = true;
|
|
|
|
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;
|
|
}
|