3
0
Fork 0
forked from mirrors/nixpkgs

lightdm: enable the accounts daemon to find dbus interface

This commit is contained in:
Mitsuhiro Nakamura 2018-08-16 17:56:44 +09:00
parent 6c84945099
commit 7fbdd7fcf4
2 changed files with 9 additions and 0 deletions

View file

@ -32,6 +32,9 @@ with lib;
environment.systemPackages = [ pkgs.accountsservice ];
# Accounts daemon looks for dbus interfaces in $XDG_DATA_DIRS/accountsservice
environment.pathsToLink = [ "/share/accountsservice" ];
services.dbus.packages = [ pkgs.accountsservice ];
systemd.packages = [ pkgs.accountsservice ];
@ -40,6 +43,9 @@ with lib;
wantedBy = [ "graphical.target" ];
# Accounts daemon looks for dbus interfaces in $XDG_DATA_DIRS/accountsservice
environment.XDG_DATA_DIRS = "${config.system.path}/share";
} // (optionalAttrs (!config.users.mutableUsers) {
environment.NIXOS_USERS_PURE = "true";
});

View file

@ -212,6 +212,9 @@ in
# lightdm uses the accounts daemon to remember language/window-manager per user
services.accounts-daemon.enable = true;
# Enable the accounts daemon to find lightdm's dbus interface
environment.systemPackages = [ lightdm ];
security.pam.services.lightdm = {
allowNullPassword = true;
startSession = true;