about summary refs log tree commit diff
path: root/nixos/modules/programs/wayland/wayland-session.nix
blob: da117ceae0ad654f12a54342c1c8a234ddb11032 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ lib, pkgs, ... }: with lib; {
    security = {
      polkit.enable = true;
      pam.services.swaylock = {};
    };

    hardware.opengl.enable = mkDefault true;
    fonts.enableDefaultPackages = mkDefault true;

    programs = {
      dconf.enable = mkDefault true;
      xwayland.enable = mkDefault true;
    };

    xdg.portal = {
      enable = mkDefault true;

      extraPortals = [
        # For screen sharing
        pkgs.xdg-desktop-portal-wlr
      ];
    };
}