nixos/lightdm: enable polkit

Required as visible in the lightdm tests:

> Error updating user /org/freedesktop/Accounts/User1001: GDBus.Error:org.freedesktop.Accounts.Error.PermissionDenied: Not authorized: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit1 was not provided by any .service files
This commit is contained in:
Martin Weinelt 2022-01-26 19:16:30 +01:00
parent 09798ce569
commit 4f593e7cdf
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -267,6 +267,8 @@ in
# Enable the accounts daemon to find lightdm's dbus interface
environment.systemPackages = [ lightdm ];
security.polkit.enable = true;
security.pam.services.lightdm.text = ''
auth substack login
account include login