{ pkgs, config, lib, ... }: lib.mkIf config.desktop.xserver.enable { xsession = { enable = true; profileExtra = '' ${pkgs.mate.mate-polkit}/usr/lib/mate-polkit/polkit-mate-authentication-agent-1 & ${pkgs.darkman}/bin/darkman set dark ''; }; }