nixos/accountsservice: set XDG_DATA_DIRS correctly

This commit is contained in:
Benno Fünfstück 2018-11-18 16:55:00 +01:00
parent 87ef847d13
commit 773e8d07bc

View File

@ -39,14 +39,14 @@ with lib;
systemd.packages = [ pkgs.accountsservice ];
systemd.services.accounts-daemon = {
systemd.services.accounts-daemon = recursiveUpdate {
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) {
} (optionalAttrs (!config.users.mutableUsers) {
environment.NIXOS_USERS_PURE = "true";
});
};